Struct sstable::table_reader::Table
[−]
[src]
pub struct Table<R: Read + Seek> { /* fields omitted */ }
Methods
impl<R: Read + Seek> Table<R>
[src]
fn new(
opt: Options,
file: R,
size: usize,
fp: Arc<Box<FilterPolicy>>
) -> Result<Table<R>>
opt: Options,
file: R,
size: usize,
fp: Arc<Box<FilterPolicy>>
) -> Result<Table<R>>
Creates a new table reader.
fn approx_offset_of(&self, key: &[u8]) -> usize
Returns the offset of the block that contains key
.
fn get(&mut self, key: &[u8]) -> Option<Vec<u8>>
Retrieve value from table. This function uses the attached filters, so is better suited if you frequently look for non-existing values (as it will detect the non-existence of an entry in a block without having to load the block).