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)
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 Iterable<Values> execute(TridentTuple input)
FlatMapFunctionInvoked by the framework for each trident tuple in a stream.
execute in interface FlatMapFunctioninput - the input trident tupleCopyright © 2019 The Apache Software Foundation. All Rights Reserved.