Package org.geotools.stac.store
Class TimeRangeVisitor
Object
NullFilterVisitor
TimeRangeVisitor
- All Implemented Interfaces:
ExpressionVisitor
,FilterVisitor
Returns a
The visitor is not thread safe, call
DateRange
if the filter is equivalent to a date range on the "datetime" property, null
otherwise, meaning there is more filtering included. The visitor is not thread safe, call
reset
in case you want to re-use and need to check the "exact"
property.-
Field Summary
FieldsFields inherited from class NullFilterVisitor
NULL_VISITOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the property name used to match time range expressionsboolean
isExact()
Returns true if the date range exactly represents the filter, false if there are other componentsprotected boolean
isTimeProperty
(Expression expression) Checks if a property is a time property, users can override if they have more sophisticated logic than matching a single property namevoid
reset()
void
setTimeProperty
(String timeProperty) Sets the property name used to match time range expressionsvisit
(ExcludeFilter filter, Object extraData) VisitFilter.EXCLUDE
(often used during data structure transformations).visit
(IncludeFilter filter, Object extraData) VisitFilter.INCLUDE
(often used during data structure transformations).visit
(PropertyIsBetween filter, Object extraData) visit
(PropertyIsEqualTo filter, Object extraData) visit
(PropertyIsGreaterThanOrEqualTo filter, Object extraData) visit
(PropertyIsGreaterThan filter, Object extraData) visit
(PropertyIsLessThanOrEqualTo filter, Object extraData) visit
(PropertyIsLessThan filter, Object extraData) visit
(PropertyIsLike filter, Object extraData) visit
(PropertyIsNil filter, Object extraData) visit
(PropertyIsNotEqualTo filter, Object extraData) visit
(PropertyIsNull filter, Object extraData) visit
(Intersects filter, Object extraData) visit
(AnyInteracts anyInteracts, Object extraData) visit
(OverlappedBy overlappedBy, Object extraData) visitNullFilter
(Object extraData) Used to account for anull
filter value.
-
Field Details
-
DATE_NEGATIVE_INFINITE
-
DATE_POSITIVE_INFINITE
-
-
Constructor Details
-
TimeRangeVisitor
public TimeRangeVisitor()
-
-
Method Details
-
getTimeProperty
Returns the property name used to match time range expressions -
setTimeProperty
Sets the property name used to match time range expressions -
isExact
public boolean isExact()Returns true if the date range exactly represents the filter, false if there are other components- Returns:
-
reset
public void reset() -
isTimeProperty
Checks if a property is a time property, users can override if they have more sophisticated logic than matching a single property name- Parameters:
expression
-- Returns:
-
visitNullFilter
Description copied from interface:FilterVisitor
Used to account for anull
filter value.This is particularly used during data structure transofrmations, however the use of
null
is not recommended. Please make use of Filter.NONE and Filter.ALL as placeholder objects that communicate intent.- Specified by:
visitNullFilter
in interfaceFilterVisitor
- Overrides:
visitNullFilter
in classNullFilterVisitor
- Parameters:
extraData
- Value object provided to visitor- Returns:
- subclass defined
-
visit
Description copied from interface:FilterVisitor
VisitFilter.EXCLUDE
(often used during data structure transformations).- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
- Parameters:
filter
-Filter.EXCLUDE
.extraData
- Value object provided to visitor- Returns:
- subclass supplied
-
visit
Description copied from interface:FilterVisitor
VisitFilter.INCLUDE
(often used during data structure transformations).- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
- Parameters:
filter
-Filter.INCLUDE
.extraData
- Value object provided to visitor- Returns:
- subclass supplied
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-
visit
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classNullFilterVisitor
-