findRecord overloads
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...
The first valid record found, or an empty record.
| Name | Description |
|---|---|
| range | The range to search. |
| fileId | The file id to match, or 0 to match any. |
| searchRange | The subrange to search for a record start. |
| wholeRange | The full range the record may extend into. |