org.hibernate.search.spatial.impl
Class DistanceCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.hibernate.search.spatial.impl.DistanceCollector

public class DistanceCollector
extends Collector


Constructor Summary
DistanceCollector(Collector delegate, Coordinates centerCoordinates, int hitsCount, String fieldname)
           
 
Method Summary
 boolean acceptsDocsOutOfOrder()
           
 void collect(int doc)
           
 double getDistance(int index)
           
 void setNextReader(IndexReader reader, int docBase)
           
 void setScorer(Scorer scorer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistanceCollector

public DistanceCollector(Collector delegate,
                         Coordinates centerCoordinates,
                         int hitsCount,
                         String fieldname)
Method Detail

setScorer

public void setScorer(Scorer scorer)
               throws IOException
Specified by:
setScorer in class Collector
Throws:
IOException

collect

public void collect(int doc)
             throws IOException
Specified by:
collect in class Collector
Throws:
IOException

setNextReader

public void setNextReader(IndexReader reader,
                          int docBase)
                   throws IOException
Specified by:
setNextReader in class Collector
Throws:
IOException

acceptsDocsOutOfOrder

public boolean acceptsDocsOutOfOrder()
Specified by:
acceptsDocsOutOfOrder in class Collector

getDistance

public double getDistance(int index)


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved