Struct differential_dataflow::trace::layers::ordered::OrderedBuilder
[−]
[src]
pub struct OrderedBuilder<K: Ord, L> { pub keys: Vec<K>, pub offs: Vec<usize>, pub vals: L, }
Assembles a layer of this
Fields
keys: Vec<K>
Keys
offs: Vec<usize>
Offsets
vals: L
The next layer down
Trait Implementations
impl<K: Ord + Clone, L: Builder> Builder for OrderedBuilder<K, L>
[src]
type Trie = OrderedLayer<K, L::Trie>
The type of collection produced.
fn boundary(&mut self) -> usize
[src]
Requests a commitment to the offset of the current-most sub-collection. Read more
fn done(self) -> Self::Trie
[src]
Finalizes the building process and returns the collection.
impl<K: Ord + Clone, L: MergeBuilder> MergeBuilder for OrderedBuilder<K, L>
[src]
fn with_capacity(other1: &Self::Trie, other2: &Self::Trie) -> Self
[src]
Allocates an instance of the builder with sufficient capacity to contain the merged data.
fn copy_range(&mut self, other: &Self::Trie, lower: usize, upper: usize)
[src]
Copies sub-collections of other
into this collection.
fn push_merge(
&mut self,
other1: (&Self::Trie, usize, usize),
other2: (&Self::Trie, usize, usize)
) -> usize
[src]
&mut self,
other1: (&Self::Trie, usize, usize),
other2: (&Self::Trie, usize, usize)
) -> usize
Merges two sub-collections into one sub-collection.
impl<K: Ord + Clone, L: TupleBuilder> TupleBuilder for OrderedBuilder<K, L>
[src]
type Item = (K, L::Item)
The type of item accepted for construction.
fn new() -> Self
[src]
Allocates a new builder.
fn with_capacity(cap: usize) -> Self
[src]
Allocates a new builder with capacity for at least cap
tuples.
fn push_tuple(&mut self, (key, val): (K, L::Item))
[src]
Inserts a new into the collection.