public class ReducerAggregatorImpl extends Object implements Aggregator<Result>
Constructor and Description |
---|
ReducerAggregatorImpl(ReducerAggregator agg) |
Modifier and Type | Method and Description |
---|---|
void |
aggregate(Result val,
TridentTuple tuple,
TridentCollector collector) |
void |
cleanup() |
void |
complete(Result val,
TridentCollector collector) |
Result |
init(Object batchId,
TridentCollector collector) |
void |
prepare(Map conf,
TridentOperationContext context) |
public ReducerAggregatorImpl(ReducerAggregator agg)
public void prepare(Map conf, TridentOperationContext context)
public Result init(Object batchId, TridentCollector collector)
init
in interface Aggregator<Result>
public void aggregate(Result val, TridentTuple tuple, TridentCollector collector)
aggregate
in interface Aggregator<Result>
public void complete(Result val, TridentCollector collector)
complete
in interface Aggregator<Result>
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.