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()
When running in local mode, called when the local cluster is being shut down.
|
void |
complete(Result val,
TridentCollector collector) |
Result |
init(Object batchId,
TridentCollector collector) |
void |
prepare(Map conf,
TridentOperationContext context)
Called when the
Operation is first initialized. |
public ReducerAggregatorImpl(ReducerAggregator agg)
public void prepare(Map conf, TridentOperationContext context)
OperationCalled when the Operation is first initialized.
prepare in interface Operationconf - the Storm configuration mapcontext - the operation context which provides information such as the number of partitions in the stream, and the current partition index. It also provides methods for registering operation-specific metrics.TridentOperationContextpublic 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 © 2019 The Apache Software Foundation. All Rights Reserved.