Struct sstable::table_reader::Table
[−]
[src]
pub struct Table<R: Read + Seek, C: Comparator> { /* fields omitted */ }
Methods
impl<R: Read + Seek> Table<R, StandardComparator>
[src]
fn new_defaults(file: R, size: usize) -> Result<Table<R, StandardComparator>>
Open a table for reading.
impl<R: Read + Seek, C: Comparator> Table<R, C>
[src]
fn new(file: R, size: usize, opt: ReadOptions, cmp: C) -> Result<Table<R, C>>
Open a table for reading. Note: The comparator must be the same that was chosen when building the table.
fn approx_offset_of(&self, key: &[u8]) -> usize
Returns the offset of the block that contains key
.
fn iter<'a>(&'a mut self) -> TableIterator<'a, R, C>
fn get(&mut self, key: &[u8]) -> Option<Vec<u8>>
Retrieve an entry from the table.
Note: As this doesn't keep state, using a TableIterator and seek() may be more efficient when retrieving several entries from the same underlying block.