[][src]Trait rocks::listener::CompactionEventListener

pub trait CompactionEventListener {
    pub fn on_compaction(
        &mut self,
        level: i32,
        key: &[u8],
        value_type: CompactionListenerValueType,
        existing_value: &[u8],
        sn: SequenceNumber,
        is_new: bool
    ); }

A call-back function to RocksDB which will be called when the compaction iterator is compacting values. It is mean to be returned from EventListner::GetCompactionEventListner() at the beginning of compaction job.

Required methods

pub fn on_compaction(
    &mut self,
    level: i32,
    key: &[u8],
    value_type: CompactionListenerValueType,
    existing_value: &[u8],
    sn: SequenceNumber,
    is_new: bool
)
[src]

Loading content...

Implementors

impl<F> CompactionEventListener for F where
    F: FnMut(CompactionEvent<'_>), 
[src]

Loading content...