storm.trident.operation.impl
Class GroupedAggregator
java.lang.Object
storm.trident.operation.impl.GroupedAggregator
- All Implemented Interfaces:
- Serializable, Aggregator<Object[]>, Operation
public class GroupedAggregator
- extends Object
- implements Aggregator<Object[]>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupedAggregator
public GroupedAggregator(Aggregator agg,
Fields group,
Fields input,
int outSize)
prepare
public void prepare(Map conf,
TridentOperationContext context)
- Specified by:
prepare in interface Operation
init
public Object[] init(Object batchId,
TridentCollector collector)
- Specified by:
init in interface Aggregator<Object[]>
aggregate
public void aggregate(Object[] arr,
TridentTuple tuple,
TridentCollector collector)
- Specified by:
aggregate in interface Aggregator<Object[]>
complete
public void complete(Object[] arr,
TridentCollector collector)
- Specified by:
complete in interface Aggregator<Object[]>
cleanup
public void cleanup()
- Specified by:
cleanup in interface Operation
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.