folly::recordio_helpers::findRecord

findRecord overloads

Synopses

Declared in <folly/io/RecordIO.h>

Search for the first valid record in range.

RecordInfo
findRecord(
    ByteRange range,
    uint32_t fileId);
» more...

Search for the first valid record that begins in searchRange (which must be a subrange of wholeRange). Returns the record data (not the header) if found, ByteRange() otherwise.

RecordInfo
findRecord(
    ByteRange searchRange,
    ByteRange wholeRange,
    uint32_t fileId);
» more...

Return Value

The first valid record found, or an empty record.

Parameters

NameDescription
rangeThe range to search.
fileIdThe file id to match, or 0 to match any.
searchRangeThe subrange to search for a record start.
wholeRangeThe full range the record may extend into.