[][src]Trait rocks::flush_block_policy::FlushBlockPolicy

pub trait FlushBlockPolicy {
    fn update(&mut self, key: &[u8], value: &[u8]) -> bool;
}

FlushBlockPolicy provides a configurable way to determine when to flush a block in the block based tables,

Required methods

fn update(&mut self, key: &[u8], value: &[u8]) -> bool

Keep track of the key/value sequences and return the boolean value to determine if table builder should flush current data block.

Loading content...

Implementors

Loading content...