org.geotools.filter.temporal
Class BinaryTemporalOperatorImpl

Object
  extended by 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
protected  Expression e1
           
protected  Expression e2
           
protected  MultiValuedFilter.MatchAction matchAction
           
 
Fields inherited from interface Filter
EXCLUDE, INCLUDE
 
Constructor Summary
protected BinaryTemporalOperatorImpl(Expression e1, Expression e2)
           
protected BinaryTemporalOperatorImpl(Expression e1, Expression e2, MultiValuedFilter.MatchAction matchAction)
           
 
Method Summary
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)
           
protected  TemporalPrimitive toTemporal(Object object, Expression e)
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Filter
accept
 

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 interface BinaryTemporalOperator

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 interface BinaryTemporalOperator

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 interface MultiValuedFilter
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.

Specified by:
evaluate in interface Filter
Returns:
true if the test(s) are passed for the provided object

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)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 1996-2014 Geotools. All Rights Reserved.