org.gcube.indexmanagement.geoindexlookup.defaultplugins.refinement
Class TimeStampRefiner
java.lang.Object
Refiner
org.gcube.indexmanagement.geoindexlookup.defaultplugins.refinement.TimeStampRefiner
public class TimeStampRefiner
- extends Refiner
A Refiner which refines based on whether a specified Query time span contains
the time stamp of entries. This RankEvaluator requires the fields "TimeStamp"
(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).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeStampRefiner
public TimeStampRefiner()
isIndexTypeCompatible
public boolean isIndexTypeCompatible(GeoIndexType indexType)
-
isHit
public boolean isHit(DataWrapper entry)
-
initialize
public void initialize(java.lang.String[] args)
throws RefinerInitializationException
-
- Throws:
RefinerInitializationException