September 2017
Beginner to intermediate
360 pages
8h 13m
English
The following are the characteristics of aggregator:
public interface Aggregator<T> extends Operation { T init(Object batchId, TridentCollector collector); void aggregate(T state, TridentTuple tuple, TridentCollector collector); void complete(T state, TridentCollector collector);}
Example:
public class CountAgg extends BaseAggregator<CountState> ...
Read now
Unlock full access