[][src]Struct declarative_dataflow::CollectionIndex

pub struct CollectionIndex<K, V, T> where
    K: Data,
    V: Data,
    T: Lattice + Data
{ pub name: String, // some fields omitted }

Various indices over a collection of (K, V) pairs, required to participate in delta-join pipelines.

Fields

name: String

A name uniquely identifying this index.

Methods

impl<K, V, T> CollectionIndex<K, V, T> where
    K: Data + Hash,
    V: Data + Hash,
    T: Lattice + Data + Timestamp
[src]

pub fn index<G: Scope<Timestamp = T>>(
    name: &str,
    collection: &Collection<G, (K, V), isize>
) -> Self
[src]

Creates a named CollectionIndex from a (K, V) collection.

pub fn import<G: Scope<Timestamp = T>>(
    &mut self,
    scope: &G
) -> (LiveIndex<G, K, V, TraceKeyHandle<K, T, isize>, TraceValHandle<K, V, T, isize>, TraceKeyHandle<(K, V), T, isize>>, ShutdownHandle)
[src]

Returns a LiveIndex that lives in the specified scope.

pub fn advance_by(&mut self, frontier: &[T])[src]

Advances the traces maintained in this index.

Trait Implementations

impl<K, V, T> Clone for CollectionIndex<K, V, T> where
    K: Data + Hash,
    V: Data + Hash,
    T: Lattice + Data + Timestamp
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<K, V, T> !Send for CollectionIndex<K, V, T>

impl<K, V, T> !Sync for CollectionIndex<K, V, T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Data for T where
    T: 'static + Clone
[src]