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)
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 void cleanup()
OperationWhen running in local mode, called when the local cluster is being shut down.
public Values execute(TridentTuple input)
MapFunctionInvoked by the framework for each trident tuple in a stream.
execute in interface MapFunctioninput - the input trident tupleCopyright © 2019 The Apache Software Foundation. All Rights Reserved.