Package org.geotools.stac.store
Class TemporalFilterVisitor
- Object
-
- DuplicatingFilterVisitor
-
- TemporalFilterVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
,FilterVisitor
public class TemporalFilterVisitor extends DuplicatingFilterVisitor
Several parts of GeoTools build simple comparisons for temporal filters, CQL2 uses dedicated operators instead, this visitor switches simple comparisons to temporal ones when a temporal property is used.
-
-
Field Summary
-
Fields inherited from class DuplicatingFilterVisitor
ff
-
-
Constructor Summary
Constructors Constructor Description TemporalFilterVisitor(SimpleFeatureType schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 nameObject
visit(PropertyIsEqualTo filter, Object extraData)
-
Methods inherited from class DuplicatingFilterVisitor
getFactory, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitNullFilter
-
-
-
-
Constructor Detail
-
TemporalFilterVisitor
public TemporalFilterVisitor(SimpleFeatureType schema)
-
-
Method Detail
-
visit
public Object visit(PropertyIsEqualTo filter, Object extraData)
- Specified by:
visit
in interfaceFilterVisitor
- Overrides:
visit
in classDuplicatingFilterVisitor
-
isTimeProperty
protected 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 name- Parameters:
expression
-- Returns:
-
-