public class DistanceCollector extends Object implements org.apache.lucene.search.Collector
Collector for spatial searches.| Constructor and Description |
|---|
DistanceCollector(Coordinates centerCoordinates,
int hitsCount,
String fieldname) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDistance(int index) |
org.apache.lucene.search.LeafCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext context) |
boolean |
needsScores() |
public DistanceCollector(Coordinates centerCoordinates, int hitsCount, String fieldname)
public double getDistance(int index)
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
throws IOException
getLeafCollector in interface org.apache.lucene.search.CollectorIOExceptionpublic boolean needsScores()
needsScores in interface org.apache.lucene.search.CollectorCopyright © 2006–2016 Hibernate. All rights reserved.