org.apache.lucene.spatial.tier
Class DistanceFieldComparatorSource
java.lang.Object
org.apache.lucene.search.FieldComparatorSource
org.apache.lucene.spatial.tier.DistanceFieldComparatorSource
- All Implemented Interfaces:
- Serializable
public class DistanceFieldComparatorSource
- extends FieldComparatorSource
NOTE: This API is still in
flux and might change in incompatible ways in the next
release.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistanceFieldComparatorSource
public DistanceFieldComparatorSource(Filter distanceFilter)
cleanUp
public void cleanUp()
newComparator
public FieldComparator newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed)
throws IOException
- Description copied from class:
FieldComparatorSource
- Creates a comparator for the field in the given index.
- Specified by:
newComparator
in class FieldComparatorSource
- Parameters:
fieldname
- Name of the field to create comparator for.
- Returns:
- FieldComparator.
- Throws:
IOException
- If an error occurs reading the index.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.