Trait differential_dataflow::trace::Builder
source · pub trait Builder<K, V, T, R, Output: Batch<K, V, T, R>> {
fn new() -> Self;
fn with_capacity(cap: usize) -> Self;
fn push(&mut self, element: (K, V, T, R));
fn done(self, lower: &[T], upper: &[T], since: &[T]) -> Output;
fn extend<I: Iterator<Item = (K, V, T, R)>>(&mut self, iter: I) { ... }
}Expand description
Functionality for building batches from ordered update sequences.
Required Methods
sourcefn with_capacity(cap: usize) -> Self
fn with_capacity(cap: usize) -> Self
Allocates an empty builder with some capacity.
sourcefn push(&mut self, element: (K, V, T, R))
fn push(&mut self, element: (K, V, T, R))
Adds an element to the batch.
Provided Methods
sourcefn extend<I: Iterator<Item = (K, V, T, R)>>(&mut self, iter: I)
fn extend<I: Iterator<Item = (K, V, T, R)>>(&mut self, iter: I)
Adds an ordered sequence of elements to the batch.
Implementors
impl<K, T, R> Builder<K, (), T, R, OrdKeyBatch<K, T, R>> for OrdKeyBuilder<K, T, R>where
K: Ord + Clone + 'static,
T: Lattice + Ord + Clone + 'static,
R: Diff,
impl<K, V, T, R> Builder<K, V, T, R, OrdValBatch<K, V, T, R>> for OrdValBuilder<K, V, T, R>where
K: Ord + Clone + 'static,
V: Ord + Clone + 'static,
T: Lattice + Ord + Clone + Debug + 'static,
R: Diff,
impl<K, V, T, R, B: Batch<K, V, T, R> + Abomonation> Builder<K, V, T, R, Abomonated<B, Vec<u8, Global>>> for AbomonatedBuilder<K, V, T, R, B>
Functionality for building batches from ordered update sequences.
impl<K, V, T, R, B: Batch<K, V, T, R>> Builder<K, V, T, R, Rc<B>> for RcBuilder<K, V, T, R, B>
Functionality for building batches from ordered update sequences.