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.
|
cleanuppublic EvaluationFilter(ExecutableExpression filterInstance, org.apache.calcite.DataContext dataContext)
public void prepare(Map conf, TridentOperationContext context)
BaseOperationNo-op implementation.
prepare in interface Operationprepare in class BaseOperationconf - 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 boolean isKeep(TridentTuple tuple)
FilterDetermines 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.