public class EvaluationCalc extends Object implements OperationAwareFlatMapFunction
Constructor and Description |
---|
EvaluationCalc(ExecutableExpression filterInstance,
ExecutableExpression projectionInstance,
int outputCount,
org.apache.calcite.DataContext dataContext) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
When running in local mode, called when the local cluster is being shut down.
|
Iterable<Values> |
execute(TridentTuple input)
Invoked by the framework for each trident tuple in a stream.
|
void |
prepare(Map conf,
TridentOperationContext context)
Called when the
Operation is first initialized. |
public EvaluationCalc(ExecutableExpression filterInstance, ExecutableExpression projectionInstance, int outputCount, org.apache.calcite.DataContext dataContext)
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 void cleanup()
Operation
When running in local mode, called when the local cluster is being shut down.
public Iterable<Values> execute(TridentTuple input)
FlatMapFunction
Invoked by the framework for each trident tuple in a stream.
execute
in interface FlatMapFunction
input
- the input trident tupleCopyright © 2022 The Apache Software Foundation. All Rights Reserved.