public class EvaluationFunction extends Object implements OperationAwareMapFunction
Constructor and Description |
---|
EvaluationFunction(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.
|
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 EvaluationFunction(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 Values execute(TridentTuple input)
MapFunction
Invoked by the framework for each trident tuple in a stream.
execute
in interface MapFunction
input
- the input trident tupleCopyright © 2019 The Apache Software Foundation. All Rights Reserved.