storm.trident.operation.impl
Class ChainedAggregatorImpl

java.lang.Object
  extended by storm.trident.operation.impl.ChainedAggregatorImpl
All Implemented Interfaces:
java.io.Serializable, Aggregator<ChainedResult>, Operation

public class ChainedAggregatorImpl
extends java.lang.Object
implements Aggregator<ChainedResult>

See Also:
Serialized Form

Constructor Summary
ChainedAggregatorImpl(Aggregator[] aggs, Fields[] inputFields, ComboList.Factory fact)
           
 
Method Summary
 void aggregate(ChainedResult val, TridentTuple tuple, TridentCollector collector)
           
 void cleanup()
           
 void complete(ChainedResult val, TridentCollector collector)
           
 ChainedResult 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

ChainedAggregatorImpl

public ChainedAggregatorImpl(Aggregator[] aggs,
                             Fields[] inputFields,
                             ComboList.Factory fact)
Method Detail

prepare

public void prepare(java.util.Map conf,
                    TridentOperationContext context)
Specified by:
prepare in interface Operation

init

public ChainedResult init(java.lang.Object batchId,
                          TridentCollector collector)
Specified by:
init in interface Aggregator<ChainedResult>

aggregate

public void aggregate(ChainedResult val,
                      TridentTuple tuple,
                      TridentCollector collector)
Specified by:
aggregate in interface Aggregator<ChainedResult>

complete

public void complete(ChainedResult val,
                     TridentCollector collector)
Specified by:
complete in interface Aggregator<ChainedResult>

cleanup

public void cleanup()
Specified by:
cleanup in interface Operation