Trait Strategy

Source
pub trait Strategy<BC, C>
where BC: BlobCache, C: Compressor + Clone,
{ // Required method fn pick(&self, value_log: &ValueLog<BC, C>) -> Vec<u64>; }
Expand description

GC strategy

Required Methods§

Source

fn pick(&self, value_log: &ValueLog<BC, C>) -> Vec<u64>

Picks segments based on a predicate.

Implementors§

Source§

impl<BC, C> GcStrategy<BC, C> for SpaceAmpStrategy
where BC: BlobCache, C: Compressor + Clone,

Source§

impl<BC, C> GcStrategy<BC, C> for StaleThresholdStrategy
where BC: BlobCache, C: Compressor + Clone,