org.gcube.indexmanagement.geoindexlookup.defaultplugins.refinement
Class TimeSpanRefiner
java.lang.Object
Refiner
org.gcube.indexmanagement.geoindexlookup.defaultplugins.refinement.TimeSpanRefiner
public class TimeSpanRefiner
- extends Refiner
A Refiner which refines based on whether a specified Query time span
overlaps/contains/is-inside the time span of entries. This RankEvaluator
requires thefields "StartTime" and "EndTime" (both of type "date") to be
present in the GeoIndexType. It also requires the first and the second
argument in the array of Initialization arguments to be valid dates
representing the start and the end time of the Query timespan respectively.
These String arguments should be in the format format
"yyyy-MM-dd'T'HH:mm:ss.s" (where only yyyy is mandatory). Optionally, the
inclusion type can be specified in a third argument as either "intersect",
"contains" or "inside" (the default is intersect).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeSpanRefiner
public TimeSpanRefiner()
isIndexTypeCompatible
public boolean isIndexTypeCompatible(GeoIndexType indexType)
-
isHit
public boolean isHit(DataWrapper entry)
-
initialize
public void initialize(java.lang.String[] args)
throws RefinerInitializationException
-
- Throws:
RefinerInitializationException