org.gcube.indexmanagement.geoindexlookup.defaultplugins.ranking
Class TimeStampRanker
java.lang.Object
RankEvaluator
org.gcube.indexmanagement.geoindexlookup.defaultplugins.ranking.TimeStampRanker
public class TimeStampRanker
- extends RankEvaluator
A RankEvaluator which ranks entries according to the distance between a
target time specified in the Query and the TimeStamp of the entries. This
RankEvaluator requires the field "TimeStamp" (of type "date") to be present
in the GeoIndexType. It also requires the first argument in the array of
Initialization arguments to be a valid date representing the target time of
the query. This String argument 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 |
TimeStampRanker
public TimeStampRanker()
isIndexTypeCompatible
public boolean isIndexTypeCompatible(GeoIndexType indexType)
-
rank
public double rank(DataWrapper geoData)
-
initialize
public void initialize(java.lang.String[] args)
throws RankEvaluatorInitializationException
-
- Throws:
RankEvaluatorInitializationException