Struct differential_dataflow::trace::layers::hashed::HashedBuilder [] [src]

pub struct HashedBuilder<K: HashOrdered, L> {
    pub keys: Vec<Entry<K>>,
    pub vals: L,
    // some fields omitted
}

Assembles a layer of this

Fields

Entries in the hash map.

A builder for the layer below.

Trait Implementations

impl<K: HashOrdered + Clone + Default, L: Builder> Builder for HashedBuilder<K, L>
[src]

The type of collection produced.

[src]

Looks at the contents of self.temp and extends self.keys appropriately.

This is where the "hash map" structure is produced. Up until this point, all (key, usize) pairs were committed to self.temp, where they awaited layout. That now happens here.

[src]

Finalizes the building process and returns the collection.

impl<K: HashOrdered + Clone + Default, L: MergeBuilder> MergeBuilder for HashedBuilder<K, L>
[src]

[src]

Allocates an instance of the builder with sufficient capacity to contain the merged data.

[src]

Copies fully formed ranges (note plural) of keys from another trie.

While the ranges are fully formed, the offsets in them are relative to the other trie, and must be corrected. These keys must be moved immediately to self.keys, as there is no info about boundaries between them, and we are unable to lay out the info any differently.

[src]

Merges two sub-collections into one sub-collection.

impl<K: HashOrdered + Clone + Default, L: TupleBuilder> TupleBuilder for HashedBuilder<K, L>
[src]

The type of item accepted for construction.

[src]

Allocates a new builder.

[src]

Allocates a new builder with capacity for at least cap tuples.

[src]

Inserts a new into the collection.