public class EvaluationFilter extends BaseFilter
Constructor and Description |
---|
EvaluationFilter(ExecutableExpression filterInstance,
org.apache.calcite.DataContext dataContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
isKeep(TridentTuple tuple)
Determines if a tuple should be filtered out of a stream
|
void |
prepare(Map conf,
TridentOperationContext context)
No-op implementation.
|
cleanup
public EvaluationFilter(ExecutableExpression filterInstance, org.apache.calcite.DataContext dataContext)
public void prepare(Map conf, TridentOperationContext context)
BaseOperation
No-op implementation.
prepare
in interface Operation
prepare
in class BaseOperation
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 boolean isKeep(TridentTuple tuple)
Filter
Determines if a tuple should be filtered out of a stream
tuple
- the tuple being evaluatedfalse
to drop the tuple, true
to keep the tupleCopyright © 2019 The Apache Software Foundation. All Rights Reserved.