storm.trident.operation.impl
Class ReducerAggregatorImpl
java.lang.Object
storm.trident.operation.impl.ReducerAggregatorImpl
- All Implemented Interfaces:
- java.io.Serializable, Aggregator<Result>, Operation
public class ReducerAggregatorImpl
- extends java.lang.Object
- implements Aggregator<Result>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReducerAggregatorImpl
public ReducerAggregatorImpl(ReducerAggregator agg)
prepare
public void prepare(java.util.Map conf,
TridentOperationContext context)
- Specified by:
prepare in interface Operation
init
public Result init(java.lang.Object batchId,
TridentCollector collector)
- Specified by:
init in interface Aggregator<Result>
aggregate
public void aggregate(Result val,
TridentTuple tuple,
TridentCollector collector)
- Specified by:
aggregate in interface Aggregator<Result>
complete
public void complete(Result val,
TridentCollector collector)
- Specified by:
complete in interface Aggregator<Result>
cleanup
public void cleanup()
- Specified by:
cleanup in interface Operation