A record and the file id it was written with.
Declared in <folly/io/RecordIO.h>
struct RecordInfo;
| Name | Description |
|---|---|
fileId | The file id from the record header. |
record | The record data, excluding the header. |
| Name | Description |
|---|---|
findRecord | Search for the first valid record in range. |
findRecord | 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. |
validateRecord | Check if there is a valid record at the beginning of range. This validates both record header and data and Returns the record data (not the header) if the record is valid, ByteRange() otherwise. |
validateRecordData | Check if there Record Data is valid (to be used after validating the header separately) Returns the record data (not the header) if the record data is valid, ByteRange() otherwise. |