Trait raftstore::coprocessor::ApplySnapshotObserver[][src]

pub trait ApplySnapshotObserver: Coprocessor {
    fn apply_plain_kvs(
        &self,
        _: &mut ObserverContext<'_>,
        _: CfName,
        _: &[(Vec<u8>, Vec<u8>)]
    ) { ... }
fn apply_sst(&self, _: &mut ObserverContext<'_>, _: CfName, _path: &str) { ... } }

Provided methods

fn apply_plain_kvs(
    &self,
    _: &mut ObserverContext<'_>,
    _: CfName,
    _: &[(Vec<u8>, Vec<u8>)]
)
[src]

Hook to call after applying key from plain file. This may be invoked multiple times for each plain file, and each time a batch of key-value pairs will be passed to the function.

fn apply_sst(&self, _: &mut ObserverContext<'_>, _: CfName, _path: &str)[src]

Hook to call after applying sst file. Currently the content of the snapshot can’t be passed to the observer.

Loading content...

Implementors

Loading content...