cascading.operation.filter
Class Xor
java.lang.Object
cascading.operation.BaseOperation<Logic.Context>
cascading.operation.filter.Logic
cascading.operation.filter.Xor
- All Implemented Interfaces:
- DeclaresResults, Filter<Logic.Context>, Operation<Logic.Context>, Traceable, Serializable
public class Xor
- extends Logic
Class Xor is a 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.
- See Also:
And
,
Or
,
Not
,
Serialized Form
Nested classes/interfaces inherited from class cascading.operation.filter.Logic |
Logic.Context |
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
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. |
Method Summary |
boolean |
isRemove(FlowProcess flowProcess,
FilterCall filterCall)
Method isRemove returns true if input should be removed from the tuple stream. |
Xor
@ConstructorProperties(value="filters")
public Xor(Filter... filters)
- Constructor Xor creates a new Xor instance where all Filter instances receive all arguments.
- Parameters:
filters
- of type Filter...
Xor
@ConstructorProperties(value={"lhsArgumentsSelector","lhsFilter","rhsArgumentSelector","rhsFilter"})
public Xor(Fields lhsArgumentSelector,
Filter lhsFilter,
Fields rhsArgumentSelector,
Filter rhsFilter)
- Constructor Xor creates a new Xor instance.
- Parameters:
lhsArgumentSelector
- of type FieldslhsFilter
- of type FilterrhsArgumentSelector
- of type FieldsrhsFilter
- of type Filter
isRemove
public boolean isRemove(FlowProcess flowProcess,
FilterCall filterCall)
- Description copied from interface:
Filter
- Method isRemove returns true if input should be removed from the tuple stream.
- Parameters:
flowProcess
- of type FlowProcessfilterCall
- of type FilterCall
- Returns:
- boolean
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.