com.comcast.xfinity.sirius.uberstore.seqindex
Load all sequence -> offset mappings from the input file handle.
Load all sequence -> offset mappings from the input file handle.
Has the side effect of advancing the file pointer to the end of the file.
Not thread safe with respect to indexFileHandle
the file handle to read from
the SortedMap[Long, Long] of sequence -> offset mappings
Persist sequence to offset mapping in the index file at the current position of writeHandle.
Persist sequence to offset mapping in the index file at the current position of writeHandle.
This function has the side effect of advancing writeHandle to the end of the written data.
Not thread safe with respect to writeHandle
the RandomAccessFile to persist into
the sequence number to store
the offset associated with seq
Read an entry off of a handle, with the side effect of advancing the handle.
Read an entry off of a handle, with the side effect of advancing the handle.
It is the caller's duty to ensure that the handle is properly located, aligned, and that data is available.
Not thread safe with respect to indexFileHandle
RandomAccessFile for the index file, it's offset will be advanced 24 bytes (entry length)
Class providing low level file operations for a binary based sequence index with checksum based data protection.