public interface Filter<Context> extends Operation<Context>
Operation
as a filter, as opposed to being a Function
.
A Filter is responsible for testing a Tuple to see if it should be removed from the tuple stream.
To implement a Filter, (optionally) sub-class BaseOperation
and have the new sub-class implement
this interface.
Modifier and Type | Method and Description |
---|---|
boolean |
isRemove(FlowProcess flowProcess,
FilterCall<Context> filterCall)
Method isRemove returns true if input should be removed from the tuple stream.
|
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare
boolean isRemove(FlowProcess flowProcess, FilterCall<Context> filterCall)
flowProcess
- of type FlowProcessfilterCall
- of type FilterCallCopyright © 2007-2017 Cascading Maintainers. All Rights Reserved.