org.hibernate.search.spatial.impl
public class DistanceCollector extends Collector
| Constructor and Description |
|---|
DistanceCollector(Collector delegate,
Coordinates centerCoordinates,
int hitsCount,
String fieldname) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsDocsOutOfOrder() |
void |
collect(int doc) |
double |
getDistance(int index) |
void |
setNextReader(IndexReader reader,
int docBase) |
void |
setScorer(Scorer scorer) |
public DistanceCollector(Collector delegate, Coordinates centerCoordinates, int hitsCount, String fieldname)
public void setScorer(Scorer scorer) throws IOException
setScorer in class CollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in class CollectorIOExceptionpublic void setNextReader(IndexReader reader, int docBase) throws IOException
setNextReader in class CollectorIOExceptionpublic boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder in class Collectorpublic double getDistance(int index)
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved