public class ChainedAggregatorImpl extends Object implements Aggregator<ChainedResult>
Constructor and Description |
---|
ChainedAggregatorImpl(Aggregator[] aggs,
Fields[] inputFields,
ComboList.Factory fact) |
Modifier and Type | Method and Description |
---|---|
void |
aggregate(ChainedResult val,
TridentTuple tuple,
TridentCollector collector) |
void |
cleanup()
When running in local mode, called when the local cluster is being shut down.
|
void |
complete(ChainedResult val,
TridentCollector collector) |
ChainedResult |
init(Object batchId,
TridentCollector collector) |
void |
prepare(Map conf,
TridentOperationContext context)
Called when the
Operation is first initialized. |
public ChainedAggregatorImpl(Aggregator[] aggs, Fields[] inputFields, ComboList.Factory fact)
public void prepare(Map conf, TridentOperationContext context)
Operation
Called when the Operation
is first initialized.
prepare
in interface Operation
conf
- 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.TridentOperationContext
public ChainedResult init(Object batchId, TridentCollector collector)
init
in interface Aggregator<ChainedResult>
public void aggregate(ChainedResult val, TridentTuple tuple, TridentCollector collector)
aggregate
in interface Aggregator<ChainedResult>
public void complete(ChainedResult val, TridentCollector collector)
complete
in interface Aggregator<ChainedResult>
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.