org.gcube.indexmanagement.geoindexlookup.defaultplugins.ranking
Class TimeStampRanker

java.lang.Object
  extended by RankEvaluator
      extended by 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).


Constructor Summary
TimeStampRanker()
           
 
Method Summary
 void initialize(java.lang.String[] args)
          
 boolean isIndexTypeCompatible(GeoIndexType indexType)
          
 double rank(DataWrapper geoData)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampRanker

public TimeStampRanker()
Method Detail

isIndexTypeCompatible

public boolean isIndexTypeCompatible(GeoIndexType indexType)


rank

public double rank(DataWrapper geoData)


initialize

public void initialize(java.lang.String[] args)
                throws RankEvaluatorInitializationException

Throws:
RankEvaluatorInitializationException