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

pub trait FlushBlockPolicy {
    pub 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

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

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...