IndexReader

Trait IndexReader 

Source
pub trait IndexReader {
    // Required method
    fn get(&self, key: &[u8]) -> Result<Option<ValueHandle>>;
}
Expand description

Trait that allows reading from an external index

An index should point into the value log using ValueHandle.

Required Methods§

Source

fn get(&self, key: &[u8]) -> Result<Option<ValueHandle>>

Returns a value handle for a given key.

This method is used to index back into the index to check for stale values when scanning through the value log’s segments.

§Errors

Will return Err if an IO error occurs.

Implementors§