[−][src]Struct terminus_store::layer::BaseLayerFileBuilder
A builder for a base layer.
This builder takes node, predicate and value strings in lexical
order through the corresponding add_<thing>
methods. When
they're all added, into_phase2()
is to be called to turn this
builder into a second builder that takes triple data.
Implementations
impl<F: 'static + FileLoad + FileStore + Clone> BaseLayerFileBuilder<F>
[src]
pub fn from_files(files: &BaseLayerFiles<F>) -> Self
[src]
Create the builder from the given files.
pub fn add_node(
self,
node: &str
) -> impl Future<Item = (u64, Self), Error = Error> + Send
[src]
self,
node: &str
) -> impl Future<Item = (u64, Self), Error = Error> + Send
Add a node string.
Panics if the given node string is not a lexical successor of the previous node string.
pub fn add_predicate(
self,
predicate: &str
) -> impl Future<Item = (u64, Self), Error = Error> + Send
[src]
self,
predicate: &str
) -> impl Future<Item = (u64, Self), Error = Error> + Send
Add a predicate string.
Panics if the given predicate string is not a lexical successor of the previous node string.
pub fn add_value(
self,
value: &str
) -> impl Future<Item = (u64, Self), Error = Error> + Send
[src]
self,
value: &str
) -> impl Future<Item = (u64, Self), Error = Error> + Send
Add a value string.
Panics if the given value string is not a lexical successor of the previous value string.
pub fn add_nodes<I: 'static + IntoIterator<Item = String> + Send>(
self,
nodes: I
) -> impl Future<Item = (Vec<u64>, Self), Error = Error> + Send where
<I as IntoIterator>::IntoIter: Send + Sync,
I: Sync,
[src]
self,
nodes: I
) -> impl Future<Item = (Vec<u64>, Self), Error = Error> + Send where
<I as IntoIterator>::IntoIter: Send + Sync,
I: Sync,
Add nodes from an iterable.
Panics if the nodes are not in lexical order, or if previous added nodes are a lexical succesor of any of these nodes.
pub fn add_predicates<I: 'static + IntoIterator<Item = String> + Send>(
self,
predicates: I
) -> impl Future<Item = (Vec<u64>, Self), Error = Error> + Send where
<I as IntoIterator>::IntoIter: Send + Sync,
I: Sync,
[src]
self,
predicates: I
) -> impl Future<Item = (Vec<u64>, Self), Error = Error> + Send where
<I as IntoIterator>::IntoIter: Send + Sync,
I: Sync,
Add predicates from an iterable.
Panics if the predicates are not in lexical order, or if previous added predicates are a lexical succesor of any of these predicates.
pub fn add_values<I: 'static + IntoIterator<Item = String> + Send>(
self,
values: I
) -> impl Future<Item = (Vec<u64>, Self), Error = Error> + Send where
<I as IntoIterator>::IntoIter: Send + Sync,
I: Sync,
[src]
self,
values: I
) -> impl Future<Item = (Vec<u64>, Self), Error = Error> + Send where
<I as IntoIterator>::IntoIter: Send + Sync,
I: Sync,
Add values from an iterable.
Panics if the values are not in lexical order, or if previous added values are a lexical succesor of any of these values.
pub fn into_phase2(
self
) -> impl Future<Item = BaseLayerFileBuilderPhase2<F>, Error = Error>
[src]
self
) -> impl Future<Item = BaseLayerFileBuilderPhase2<F>, Error = Error>
Turn this builder into a phase 2 builder that will take triple data.
Auto Trait Implementations
impl<F> RefUnwindSafe for BaseLayerFileBuilder<F> where
F: RefUnwindSafe,
<F as FileStore>::Write: RefUnwindSafe,
F: RefUnwindSafe,
<F as FileStore>::Write: RefUnwindSafe,
impl<F> Send for BaseLayerFileBuilder<F> where
<F as FileStore>::Write: Send,
<F as FileStore>::Write: Send,
impl<F> Sync for BaseLayerFileBuilder<F> where
<F as FileStore>::Write: Sync,
<F as FileStore>::Write: Sync,
impl<F> Unpin for BaseLayerFileBuilder<F> where
F: Unpin,
<F as FileStore>::Write: Unpin,
F: Unpin,
<F as FileStore>::Write: Unpin,
impl<F> UnwindSafe for BaseLayerFileBuilder<F> where
F: UnwindSafe,
<F as FileStore>::Write: UnwindSafe,
F: UnwindSafe,
<F as FileStore>::Write: UnwindSafe,
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>,