folly::recordio_helpers::RecordInfo

A record and the file id it was written with.

Synopsis

Declared in <folly/io/RecordIO.h>

struct RecordInfo;

Data Members

NameDescription
fileId The file id from the record header.
record The record data, excluding the header.

Non-Member Functions

NameDescription
findRecordSearch for the first valid record in range.
findRecordSearch 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.
validateRecordCheck 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.
validateRecordDataCheck 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.