Trait engine_rocks::raw::TablePropertiesCollector[][src]

pub trait TablePropertiesCollector {
    pub fn add(
        &mut self,
        key: &[u8],
        value: &[u8],
        entry_type: DBEntryType,
        seq: u64,
        file_size: u64
    );
pub fn finish(
        &mut self
    ) -> HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>; }

TablePropertiesCollector provides the mechanism for users to collect their own properties that they are interested in. This class is essentially a collection of callback functions that will be invoked during table building. It is constructed with TablePropertiesCollectorFactory. The methods don’t need to be thread-safe, as we will create exactly one TablePropertiesCollector object per table and then call it sequentially

Required methods

pub fn add(
    &mut self,
    key: &[u8],
    value: &[u8],
    entry_type: DBEntryType,
    seq: u64,
    file_size: u64
)
[src]

Will be called when a new key/value pair is inserted into the table.

pub fn finish(
    &mut self
) -> HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>
[src]

Will be called when a table has already been built and is ready for writing the properties block.

Loading content...

Implementors

impl TablePropertiesCollector for MvccPropertiesCollector[src]

impl TablePropertiesCollector for RangePropertiesCollector[src]

impl TablePropertiesCollector for TtlPropertiesCollector[src]

Loading content...