[][src]Struct terminus_store::layer::ChildLayerFileBuilderPhase2

pub struct ChildLayerFileBuilderPhase2<F: 'static + FileLoad + FileStore + Clone + Send + Sync> { /* fields omitted */ }

Second phase of child layer building.

This builder takes ordered triple additions and removals. When all data has been added, finalize() will build a layer.

Implementations

impl<F: 'static + FileLoad + FileStore + Clone + Send + Sync> ChildLayerFileBuilderPhase2<F>[src]

pub fn add_triple(
    self,
    subject: u64,
    predicate: u64,
    object: u64
) -> Box<dyn Future<Item = Self, Error = Error> + Send>
[src]

Add the given subject, predicate and object.

This will panic if a greater triple has already been added, and do nothing if the triple is already part of the parent.

pub fn remove_triple(
    self,
    subject: u64,
    predicate: u64,
    object: u64
) -> Box<dyn Future<Item = Self, Error = Error> + Send>
[src]

Remove the given subject, predicate and object.

This will panic if a greater triple has already been removed, and do nothing if the parent doesn't know aobut this triple.

pub fn add_id_triples<I: 'static + IntoIterator<Item = IdTriple>>(
    self,
    triples: I
) -> impl Future<Item = Self, Error = Error>
[src]

Add the given triple.

This will panic if a greater triple has already been added, and do nothing if the parent already contains this triple.

pub fn remove_id_triples<I: 'static + IntoIterator<Item = IdTriple>>(
    self,
    triples: I
) -> impl Future<Item = Self, Error = Error>
[src]

Remove the given triple.

This will panic if a greater triple has already been removed, and do nothing if the parent doesn't know aobut this triple.

pub fn finalize(self) -> impl Future<Item = (), Error = Error>[src]

Write the layer data to storage.

Auto Trait Implementations

impl<F> !RefUnwindSafe for ChildLayerFileBuilderPhase2<F>

impl<F> Send for ChildLayerFileBuilderPhase2<F> where
    <F as FileStore>::Write: Send

impl<F> Sync for ChildLayerFileBuilderPhase2<F> where
    <F as FileStore>::Write: Sync

impl<F> Unpin for ChildLayerFileBuilderPhase2<F> where
    F: Unpin,
    <F as FileStore>::Write: Unpin

impl<F> !UnwindSafe for ChildLayerFileBuilderPhase2<F>

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,