This abstract class defines interface for reading/retrieve 'entries' from a a collection of entries (...
Definition IndexedEntryReader.h:41
virtual bool getNext(uint64_t newerThan, const EntryMarker_T beginHereMarker, Payload &dst, EntryMarker_T &entryMarker) noexcept=0
This method walks the entire 'list of entries' and returns the next newer entry as specified by the '...
size_t mediaOffset
Offset, within a RegionMedia to the start of the Entry.
Definition IndexedEntryReader.h:49
virtual bool getByBufferIndex(size_t bufferIndex, Payload &dst, EntryMarker_T &entryMarker) noexcept=0
This method can be used to read an entry by its 'buffer index'.
virtual bool getLatest(Payload &dst, EntryMarker_T &entryMarker) noexcept=0
This method reads/retrieves the latest entry (from the list of Indexed Entries) stored in the persist...
virtual bool getPrevious(uint64_t olderThan, const EntryMarker_T beginHereMarker, Payload &dst, EntryMarker_T &entryMarker) noexcept=0
This method is similar to getNext(), except that it returns the next oldest entry.
uint64_t indexValue
The index/timestamp value for the entry (Note: This is NOT the 'Buffer Index' used by the getByBuffer...
Definition IndexedEntryReader.h:48
virtual size_t getMaxIndex() const noexcept=0
This method returns the maximum allowed 'bufferIndex' when calling getByIndex().
This structure define an 'marker' that identifies an entry's location in persistent media.
Definition IndexedEntryReader.h:47