Package org.geotools.filter.temporal
Class BinaryTemporalOperatorImpl
- Object
-
- BinaryTemporalOperatorImpl
-
- All Implemented Interfaces:
Filter
,MultiValuedFilter
,BinaryTemporalOperator
- Direct Known Subclasses:
AfterImpl
,AnyInteractsImpl
,BeforeImpl
,BeginsImpl
,BegunByImpl
,DuringImpl
,EndedByImpl
,EndsImpl
,MeetsImpl
,MetByImpl
,OverlappedByImpl
,TContainsImpl
,TEqualsImpl
,TOverlapsImpl
public abstract class BinaryTemporalOperatorImpl extends Object implements BinaryTemporalOperator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface MultiValuedFilter
MultiValuedFilter.MatchAction
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
e1
protected Expression
e2
protected MultiValuedFilter.MatchAction
matchAction
-
Constructor Summary
Constructors Modifier Constructor Description protected
BinaryTemporalOperatorImpl(Expression e1, Expression e2)
protected
BinaryTemporalOperatorImpl(Expression e1, Expression e2, MultiValuedFilter.MatchAction matchAction)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
doEvaluate(RelativePosition pos)
boolean
equals(Object obj)
boolean
evaluate(Object object)
Give an object, this method determines if the test(s) represented by this filter object are passed.Expression
getExpression1()
Returns the first of the two expressions to be compared by this operator.Expression
getExpression2()
Returns the second of the two expressions to be compared by this operator.MultiValuedFilter.MatchAction
getMatchAction()
* 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?int
hashCode()
protected Instant
toInstant(Object object, Expression e)
protected Period
toPeriod(Object object, Expression e)
String
toString()
Return this filter as a string.protected TemporalPrimitive
toTemporal(Object object, Expression e)
-
-
-
Field Detail
-
e1
protected Expression e1
-
e2
protected Expression e2
-
matchAction
protected MultiValuedFilter.MatchAction matchAction
-
-
Constructor Detail
-
BinaryTemporalOperatorImpl
protected BinaryTemporalOperatorImpl(Expression e1, Expression e2)
-
BinaryTemporalOperatorImpl
protected BinaryTemporalOperatorImpl(Expression e1, Expression e2, MultiValuedFilter.MatchAction matchAction)
-
-
Method Detail
-
getExpression1
public Expression getExpression1()
Description copied from interface:BinaryTemporalOperator
Returns the first of the two expressions to be compared by this operator.- Specified by:
getExpression1
in interfaceBinaryTemporalOperator
-
getExpression2
public Expression getExpression2()
Description copied from interface:BinaryTemporalOperator
Returns the second of the two expressions to be compared by this operator.- Specified by:
getExpression2
in interfaceBinaryTemporalOperator
-
getMatchAction
public MultiValuedFilter.MatchAction 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:
getMatchAction
in interfaceMultiValuedFilter
- Returns:
- MatchAction flag
-
evaluate
public boolean evaluate(Object object)
Description copied from interface:Filter
Give 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.
-
toInstant
protected Instant toInstant(Object object, Expression e)
-
toPeriod
protected Period toPeriod(Object object, Expression e)
-
toTemporal
protected TemporalPrimitive toTemporal(Object object, Expression e)
-
doEvaluate
protected abstract boolean doEvaluate(RelativePosition pos)
-
-