ImmutableMemTable

Trait ImmutableMemTable 

Source
pub trait ImmutableMemTable:
    Send
    + Sync
    + Debug {
    // Required methods
    fn get(&self, key: &[u8], seqno: u64) -> Option<Option<Vec<u8>>>;
    fn iter(
        &self,
    ) -> Box<dyn Iterator<Item = (Vec<u8>, Option<Vec<u8>>, u64)> + '_>;
    fn size(&self) -> u64;
}
Expand description

Trait for immutable memtable operations

Required Methods§

Source

fn get(&self, key: &[u8], seqno: u64) -> Option<Option<Vec<u8>>>

Get a value at a specific sequence number

Source

fn iter(&self) -> Box<dyn Iterator<Item = (Vec<u8>, Option<Vec<u8>>, u64)> + '_>

Iterate over all entries

Source

fn size(&self) -> u64

Get approximate size

Implementors§