[][src]Trait rocks::flush_block_policy::FlushBlockPolicyFactory

pub trait FlushBlockPolicyFactory {
    fn new_flush_block_policy(
        &self,
        table_options: &BlockBasedTableOptions
    ) -> Box<dyn FlushBlockPolicy>; fn name(&self) -> &str { ... } }

Required methods

fn new_flush_block_policy(
    &self,
    table_options: &BlockBasedTableOptions
) -> Box<dyn FlushBlockPolicy>

Return a new block flush policy that flushes data blocks by data size. FlushBlockPolicy may need to access the metadata of the data block builder to determine when to flush the blocks.

Callers must delete the result after any database that is using the result has been closed.

Loading content...

Provided methods

fn name(&self) -> &str

Return the name of the flush block policy.

Loading content...

Implementors

Loading content...