Package org.geotools.filter
Class MultiCompareFilterImpl
Object
FilterAbstract
AbstractFilter
BinaryComparisonAbstract
CompareFilterImpl
MultiCompareFilterImpl
- All Implemented Interfaces:
Filter,MultiValuedFilter,FilterType
- Direct Known Subclasses:
IsEqualsToImpl,IsGreaterThanImpl,IsGreaterThanOrEqualToImpl,IsLessThenImpl,IsLessThenOrEqualToImpl,IsNotEqualToImpl
Support for Multi-valued properties when comparing
- Author:
- Niels Charlier, Curtin University of Technology
-
Nested Class Summary
Nested classes/interfaces inherited from interface MultiValuedFilter
MultiValuedFilter.MatchAction -
Field Summary
FieldsFields inherited from class BinaryComparisonAbstract
expression1, expression2Fields inherited from interface FilterType
ALL, BETWEEN, COMPARE_EQUALS, COMPARE_GREATER_THAN, COMPARE_GREATER_THAN_EQUAL, COMPARE_LESS_THAN, COMPARE_LESS_THAN_EQUAL, COMPARE_NOT_EQUALS, FID, GEOMETRY_BBOX, GEOMETRY_BEYOND, GEOMETRY_CONTAINS, GEOMETRY_CROSSES, GEOMETRY_DISJOINT, GEOMETRY_DWITHIN, GEOMETRY_EQUALS, GEOMETRY_INTERSECTS, GEOMETRY_OVERLAPS, GEOMETRY_TOUCHES, GEOMETRY_WITHIN, LIKE, LOGIC_AND, LOGIC_NOT, LOGIC_OR, NONE, NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedMultiCompareFilterImpl(Expression e1, Expression e2, boolean matchCase) protectedMultiCompareFilterImpl(Expression e1, Expression e2, boolean matchCase, MultiValuedFilter.MatchAction matchAction) protectedMultiCompareFilterImpl(Expression e1, Expression e2, MultiValuedFilter.MatchAction matchAction) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanGive an object, this method determines if the test(s) represented by this filter object are passed.abstract booleanevaluateInternal(Object value1, Object value2) * Flag Controlling MatchAction property When one or more of the operands evaluates to multiple values rather than a single value, which action should be taken?Methods inherited from class CompareFilterImpl
accept, compare, equals, hashCode, setExpression1, setExpression2, toStringMethods inherited from class BinaryComparisonAbstract
comparable, eval, eval, getExpression1, getExpression2, isMatchingCaseMethods inherited from class AbstractFilter
isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilterMethods inherited from class FilterAbstract
accepts, eval, eval
-
Field Details
-
matchAction
-
-
Constructor Details
-
MultiCompareFilterImpl
-
MultiCompareFilterImpl
-
MultiCompareFilterImpl
protected MultiCompareFilterImpl(Expression e1, Expression e2, MultiValuedFilter.MatchAction matchAction) -
MultiCompareFilterImpl
protected MultiCompareFilterImpl(Expression e1, Expression e2, boolean matchCase, MultiValuedFilter.MatchAction matchAction)
-
-
Method Details
-
getMatchAction
Description copied from interface:MultiValuedFilter* Flag Controlling MatchAction property When one or more of the operands evaluates to multiple values rather than a single value, which action should be taken? If there are n values for the left operand and m values for the right operand, there are n * m possible combinations that can be compared,ANY - if any of the possible combinations match, the result is true (aggregated OR) ALL - only if all of the possible combinations match, the result is true (aggregated AND) ONE - only if exactly one of the possible combinations match, the result is true (aggregated XOR)
- Specified by:
getMatchActionin interfaceMultiValuedFilter- Overrides:
getMatchActionin classBinaryComparisonAbstract- Returns:
- MatchAction flag
-
evaluate
Description copied from interface:FilterGive an object, this method determines if the test(s) represented by this filter object are passed.This ability is used to allow Queries against both Features and and non spatial data (such as Record) and to express constraints on permissable data values.
- Returns:
true if the test(s) are passed for the provided object
-
evaluateInternal
-