Struct differential_dataflow::trace::implementations::hash::HashValBuilder
[−]
[src]
pub struct HashValBuilder<K: HashOrdered, 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, Rc<HashValBatch<K, V, T, R>>> for HashValBuilder<K, V, T, R> where
K: Clone + Default + HashOrdered + 'static,
V: Ord + Clone + 'static,
T: Lattice + Ord + Clone + Default + 'static,
R: Diff, [src]
K: Clone + Default + HashOrdered + 'static,
V: Ord + Clone + 'static,
T: Lattice + Ord + Clone + Default + '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]
) -> Rc<HashValBatch<K, V, T, R>>[src]
self,
lower: &[T],
upper: &[T],
since: &[T]
) -> Rc<HashValBatch<K, V, T, R>>
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.