Struct robt::db::Builder[][src]

pub struct Builder<K, V, D> { /* fields omitted */ }

Build an immutable read-only btree index from an iterator.

Refer to package documentation for typical work-flow.

Implementations

impl<K, V, D> Builder<K, V, D>[src]

pub fn initial(config: Config, meta: Vec<u8>) -> Result<Self>[src]

Build a fresh index, using configuration and snapshot specific meta-data.

pub fn incremental(
    config: Config,
    vlog: Option<OsString>,
    meta: Vec<u8>
) -> Result<Self>
[src]

Build an incremental index on top of an existing index. Note that the entire btree along with root-node, intermediate-nodes and leaf-nodes shall be built fresh from the iterator, but entries form the iterator can hold reference, as {fpos, length} to values and deltas within a value-log file. Instead of creating a fresh value-log file, incremental build will serialize values and deltas into supplied vlog file in append only fashion.

Trait Implementations

impl<K, V, D, B> BuildIndex<K, V, D, B> for Builder<K, V, D> where
    K: Clone + Hash + IntoCbor,
    V: Clone + IntoCbor,
    D: Clone + IntoCbor,
    B: Bloom
[src]

type Err = Error

Auto Trait Implementations

impl<K, V, D> !RefUnwindSafe for Builder<K, V, D>

impl<K, V, D> !Send for Builder<K, V, D>

impl<K, V, D> !Sync for Builder<K, V, D>

impl<K, V, D> Unpin for Builder<K, V, D> where
    D: Unpin,
    K: Unpin,
    V: Unpin

impl<K, V, D> !UnwindSafe for Builder<K, V, D>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.