public class Xor extends Logic
Filter
class that will logically 'xor' (exclusive or) the results of the
constructor provided Filter instances.
Logically, if Filter.isRemove(cascading.flow.FlowProcess, cascading.operation.FilterCall)
returns true
for all given instances,
or returns false
for all given instances, this filter will return false
.
Note that Xor can only be applied to two values.And
,
Or
,
Not
,
Serialized FormLogic.Context
argumentSelectors, filters
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
Xor(Fields lhsArgumentSelector,
Filter lhsFilter,
Fields rhsArgumentSelector,
Filter rhsFilter)
Constructor Xor creates a new Xor instance.
|
Xor(Filter... filters)
Constructor Xor creates a new Xor instance where all Filter instances receive all arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRemove(FlowProcess flowProcess,
FilterCall filterCall)
Method isRemove returns true if input should be removed from the tuple stream.
|
cleanup, equals, getArgumentSelectors, getFieldsSize, getFilters, hashCode, prepare, verify
flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="filters") public Xor(Filter... filters)
filters
- of type Filter...@ConstructorProperties(value={"lhsArgumentsSelector","lhsFilter","rhsArgumentSelector","rhsFilter"}) public Xor(Fields lhsArgumentSelector, Filter lhsFilter, Fields rhsArgumentSelector, Filter rhsFilter)
lhsArgumentSelector
- of type FieldslhsFilter
- of type FilterrhsArgumentSelector
- of type FieldsrhsFilter
- of type Filterpublic boolean isRemove(FlowProcess flowProcess, FilterCall filterCall)
Filter
flowProcess
- of type FlowProcessfilterCall
- of type FilterCallCopyright © 2007-2015 Concurrent, Inc. All Rights Reserved.