storm.trident.operation
Interface Aggregator<T>
- All Superinterfaces:
- Operation, Serializable
- All Known Implementing Classes:
- BaseAggregator, ChainedAggregatorImpl, CombinerAggregatorCombineImpl, CountAsAggregator, FirstN.FirstNAgg, FirstN.FirstNSortedAgg, GroupedAggregator, ReducerAggregatorImpl, SingleEmitAggregator
public interface Aggregator<T>
- extends Operation
init
T init(Object batchId,
TridentCollector collector)
aggregate
void aggregate(T val,
TridentTuple tuple,
TridentCollector collector)
complete
void complete(T val,
TridentCollector collector)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.