Trait differential_dataflow::operators::count::CountTotal[][src]

pub trait CountTotal<G: Scope, K: ExchangeData, R: Semigroup> where
    G::Timestamp: TotalOrder + Lattice + Ord
{ fn count_total(&self) -> Collection<G, (K, R), isize>; }

Extension trait for the count differential dataflow method.

Required methods

fn count_total(&self) -> Collection<G, (K, R), isize>[src]

Counts the number of occurrences of each element.

Examples

extern crate timely;
extern crate differential_dataflow;

use differential_dataflow::input::Input;
use differential_dataflow::operators::CountTotal;

fn main() {
    ::timely::example(|scope| {
        // report the number of occurrences of each key
        scope.new_collection_from(1 .. 10).1
             .map(|x| x / 3)
             .count_total();
    });
}
Loading content...

Implementors

impl<G: Scope, K: ExchangeData + Hashable, R: ExchangeData + Semigroup> CountTotal<G, K, R> for Collection<G, K, R> where
    G::Timestamp: TotalOrder + Lattice + Ord
[src]

impl<G: Scope, T1> CountTotal<G, <T1 as TraceReader>::Key, <T1 as TraceReader>::R> for Arranged<G, T1> where
    G::Timestamp: TotalOrder + Lattice + Ord,
    T1: TraceReader<Val = (), Time = G::Timestamp> + Clone + 'static,
    T1::Key: ExchangeData,
    T1::R: ExchangeData + Semigroup,
    T1::Batch: BatchReader<T1::Key, (), G::Timestamp, T1::R>,
    T1::Cursor: Cursor<T1::Key, (), G::Timestamp, T1::R>, 
[src]

Loading content...