storm.trident.operation.impl
Class ReducerAggregatorImpl

java.lang.Object
  extended by 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

Constructor Summary
ReducerAggregatorImpl(ReducerAggregator agg)
           
 
Method Summary
 void aggregate(Result val, TridentTuple tuple, TridentCollector collector)
           
 void cleanup()
           
 void complete(Result val, TridentCollector collector)
           
 Result init(java.lang.Object batchId, TridentCollector collector)
           
 void prepare(java.util.Map conf, TridentOperationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReducerAggregatorImpl

public ReducerAggregatorImpl(ReducerAggregator agg)
Method Detail

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