[−][src]Struct terminus_store::layer::ChildLayerFileBuilderPhase2
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]
self,
subject: u64,
predicate: u64,
object: u64
) -> Box<dyn Future<Item = Self, Error = Error> + Send>
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]
self,
subject: u64,
predicate: u64,
object: u64
) -> Box<dyn Future<Item = Self, Error = Error> + Send>
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]
self,
triples: I
) -> impl Future<Item = Self, Error = Error>
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]
self,
triples: I
) -> impl Future<Item = Self, Error = Error>
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,
<F as FileStore>::Write: Send,
impl<F> Sync for ChildLayerFileBuilderPhase2<F> where
<F as FileStore>::Write: Sync,
<F as FileStore>::Write: Sync,
impl<F> Unpin for ChildLayerFileBuilderPhase2<F> where
F: Unpin,
<F as FileStore>::Write: Unpin,
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]
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,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,