Skip to main content

Picker

Trait Picker 

Source
pub trait Picker:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn pick<'life0, 'life1, 'async_trait>(
        &'life0 self,
        compaction_region: &'life1 CompactionRegion,
    ) -> Pin<Box<dyn Future<Output = Result<Option<PickerOutput>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Picker picks input SST files for compaction. Different compaction strategy may implement different pickers.

Required Methods§

Source

fn pick<'life0, 'life1, 'async_trait>( &'life0 self, compaction_region: &'life1 CompactionRegion, ) -> Pin<Box<dyn Future<Output = Result<Option<PickerOutput>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Picks input SST files for compaction.

Implementors§