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
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • toString

      public String toString()
      Return this filter as a string.
      Overrides:
      toString in class Object
      Returns:
      String representation of this temporal filter.