public class GroupedAggregator extends Object implements Aggregator<Object[]>
Constructor and Description |
---|
GroupedAggregator(Aggregator agg,
Fields group,
Fields input,
int outSize) |
Modifier and Type | Method and Description |
---|---|
void |
aggregate(Object[] arr,
TridentTuple tuple,
TridentCollector collector) |
void |
cleanup() |
void |
complete(Object[] arr,
TridentCollector collector) |
Object[] |
init(Object batchId,
TridentCollector collector) |
void |
prepare(Map conf,
TridentOperationContext context) |
public GroupedAggregator(Aggregator agg, Fields group, Fields input, int outSize)
public void prepare(Map conf, TridentOperationContext context)
public Object[] init(Object batchId, TridentCollector collector)
init
in interface Aggregator<Object[]>
public void aggregate(Object[] arr, TridentTuple tuple, TridentCollector collector)
aggregate
in interface Aggregator<Object[]>
public void complete(Object[] arr, TridentCollector collector)
complete
in interface Aggregator<Object[]>
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.