Trait rocksdb::compaction_filter_factory::CompactionFilterFactory[][src]

pub trait CompactionFilterFactory {
    type Filter: CompactionFilter;
    fn create(&mut self, context: CompactionFilterContext) -> Self::Filter;
fn name(&self) -> &CStr; }

Each compaction will create a new CompactionFilter allowing the application to know about different compactions.

See compaction_filter::CompactionFilter and Options::set_compaction_filter_factory for more details

Associated Types

type Filter: CompactionFilter[src]

Loading content...

Required methods

fn create(&mut self, context: CompactionFilterContext) -> Self::Filter[src]

Returns a CompactionFilter for the compaction process

fn name(&self) -> &CStr[src]

Returns a name that identifies this compaction filter factory.

Loading content...

Implementors

Loading content...