Class to read from a RecordIO file. Will skip invalid records.

Synopsis

Declared in <folly/io/RecordIO.h>

class RecordIOReader;

Types

Name

Description

Iterator

Forward iterator over the valid records in the file.

Type Aliases

Name

Description

const_iterator

Const iterator over the valid records in the file.

const_reference

Const reference to a record value.

iterator

RecordIOReader is iterable, returning pairs of ByteRange (record content) and position in file where the record (including header) begins. Note that the position includes the header, that is, it can be passed back to seek().

reference

Reference to a record value.

value_type

A record as a ByteRange paired with its file position.

Member Functions

Name

Description

RecordIOReader [constructor]

A record reader with a fileId of 0 will return all records. A record reader with a non‐zero fileId will only return records where the fileId matches.

begin

Returns an iterator to the first valid record.

cbegin

Returns a const iterator to the first valid record.

cend

Returns a const iterator past the last record.

end

Returns an iterator past the last record.

seek

Create an iterator to the first valid record after pos.

Created with MrDocs