pub trait CompactionFilterFactory {
type Filter: CompactionFilter;
fn create(&mut self, context: CompactionFilterContext) -> Self::Filter;
fn name(&self) -> &CStr;
}
Expand description
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
Required Associated Types§
type Filter: CompactionFilter
Required Methods§
sourcefn create(&mut self, context: CompactionFilterContext) -> Self::Filter
fn create(&mut self, context: CompactionFilterContext) -> Self::Filter
Returns a CompactionFilter for the compaction process