Struct robt::db::Builder [−][src]
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]
config: Config,
vlog: Option<OsString>,
meta: Vec<u8>
) -> Result<Self>
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]
K: Clone + Hash + IntoCbor,
V: Clone + IntoCbor,
D: Clone + IntoCbor,
B: Bloom,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,