pub trait BuildIndex<K, V, D, B> {
type Err;
// Required method
fn build_index<I>(
&mut self,
iter: I,
bitmap: B,
seqno: Option<u64>,
) -> Result<(), Self::Err>
where I: Iterator<Item = Entry<K, V, D>>;
}
Expand description
Trait to bulk-add entries into an index.
Required Associated Types§
Required Methods§
Sourcefn build_index<I>(
&mut self,
iter: I,
bitmap: B,
seqno: Option<u64>,
) -> Result<(), Self::Err>
fn build_index<I>( &mut self, iter: I, bitmap: B, seqno: Option<u64>, ) -> Result<(), Self::Err>
Build an index form iterator. Optionally a bitmap can be specified to
implement a bloom filter. If bitmap filter is not required, pass bitmap
as NoBitmap
. seqno
can be supplied to set the snapshot’s seqno, if
supplied as None, snapshot will take is latest-seqno as the high seqno
found in the iterated entries.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.