org.gcube.indexmanagement.geoindexlookup.defaultplugins.refinement
Class TimeStampRefiner

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


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

Constructor Detail

TimeStampRefiner

public TimeStampRefiner()
Method Detail

isIndexTypeCompatible

public boolean isIndexTypeCompatible(GeoIndexType indexType)


isHit

public boolean isHit(DataWrapper entry)


initialize

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

Throws:
RefinerInitializationException