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

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

Required methods

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

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

pub fn name(&self) -> &str[src]

Return the name of the flush block policy.

Loading content...

Implementors

Loading content...