Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following additional methods support access to SequenceFiles under C/C++:

Function

Description

int sequenceFileOpen(const string& path, const string& option, const string& keyType, const string& valueType)

Opens a SequenceFile with option "r" or "w", key/value type and returns the corresponding fileID.

bool sequenceFileReadNext(int fileID, string& key, string& value)

Reads the next key/value pair from the SequenceFile.

bool sequenceFileAppend(int fileID, const string& key, const string& value)

Appends the next key/value pair to the SequenceFile.

bool sequenceFileClose(int fileID)

Closes a SequenceFile.

...