org.gcube.indexmanagement.geoindexlookup.defaultplugins.ranking
Class TimeSpanOverlapRanker
java.lang.Object
RankEvaluator
org.gcube.indexmanagement.geoindexlookup.defaultplugins.ranking.TimeSpanOverlapRanker
public class TimeSpanOverlapRanker
- extends RankEvaluator
A RankEvaluator which ranks entries according to a time span specified in the
Query, and the time span of the entries. This RankEvaluator requires the
fields "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).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeSpanOverlapRanker
public TimeSpanOverlapRanker()
isIndexTypeCompatible
public boolean isIndexTypeCompatible(GeoIndexType indexType)
-
rank
public double rank(DataWrapper geoData)
-
initialize
public void initialize(java.lang.String[] args)
throws RankEvaluatorInitializationException
-
- Throws:
RankEvaluatorInitializationException