proxygen
|
#include <RecordIO.h>
Classes | |
class | Iterator |
Public Types | |
typedef Iterator | iterator |
typedef Iterator | const_iterator |
typedef std::pair< ByteRange, off_t > | value_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
Public Member Functions | |
RecordIOReader (File file, uint32_t fileId=0) | |
Iterator | cbegin () const |
Iterator | begin () const |
Iterator | cend () const |
Iterator | end () const |
Iterator | seek (off_t pos) const |
Private Attributes | |
MemoryMapping | map_ |
uint32_t | fileId_ |
Class to read from a RecordIO file. Will skip invalid records.
Definition at line 86 of file RecordIO.h.
Definition at line 97 of file RecordIO.h.
typedef const value_type& folly::RecordIOReader::const_reference |
Definition at line 100 of file RecordIO.h.
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().
Definition at line 88 of file RecordIO.h.
Definition at line 99 of file RecordIO.h.
typedef std::pair<ByteRange, off_t> folly::RecordIOReader::value_type |
Definition at line 98 of file RecordIO.h.
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.
Definition at line 72 of file RecordIO.cpp.
|
inline |
Definition at line 60 of file RecordIO-inl.h.
References cbegin().
Referenced by folly::test::TEST().
|
inline |
|
inline |
|
inline |
Definition at line 66 of file RecordIO-inl.h.
References cend().
Referenced by folly::recordio_helpers::findRecord(), and folly::test::TEST().
|
inline |
Create an iterator to the first valid record after pos.
Definition at line 69 of file RecordIO-inl.h.
References folly::RecordIOReader::Iterator::fileId_, folly::RecordIOReader::Iterator::Iterator(), map_, and folly::MemoryMapping::range().
Referenced by cbegin(), and cend().
|
private |
Definition at line 121 of file RecordIO.h.
|
private |
Definition at line 120 of file RecordIO.h.
Referenced by seek().