Struct differential_dataflow::trace::implementations::ord::OrdValBuilder
[−]
[src]
pub struct OrdValBuilder<K: Ord, V: Ord, T: Ord + Lattice, R: Diff> { /* fields omitted */ }
A builder for creating layers from unsorted update tuples.
Trait Implementations
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,
[src]
K: Ord + Clone + 'static,
V: Ord + Clone + 'static,
T: Lattice + Ord + Clone + Debug + 'static,
R: Diff,
fn new() -> Self
[src]
Allocates an empty builder.
fn with_capacity(cap: usize) -> Self
[src]
Allocates an empty builder with some capacity.
fn push(&mut self, (key, val, time, diff): (K, V, T, R))
[src]
Adds an element to the batch.
fn done(self, lower: &[T], upper: &[T], since: &[T]) -> OrdValBatch<K, V, T, R>
[src]
Completes building and returns the batch.
fn extend<I: Iterator<Item = (K, V, T, R)>>(&mut self, iter: I)
[src]
Adds an ordered sequence of elements to the batch.