[−][src]Trait rocks::listener::CompactionEventListener
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]
&mut self,
level: i32,
key: &[u8],
value_type: CompactionListenerValueType,
existing_value: &[u8],
sn: SequenceNumber,
is_new: bool
)
Implementors
impl<F> CompactionEventListener for F where
F: FnMut(CompactionEvent<'_>),
[src]
F: FnMut(CompactionEvent<'_>),
pub fn on_compaction(
&mut self,
level: i32,
key: &[u8],
value_type: CompactionListenerValueType,
existing_value: &[u8],
sn: SequenceNumber,
is_new: bool
)
[src]
&mut self,
level: i32,
key: &[u8],
value_type: CompactionListenerValueType,
existing_value: &[u8],
sn: SequenceNumber,
is_new: bool
)