org.hibernate.search.spatial.impl
Class DistanceComparator
java.lang.Object
org.apache.lucene.search.FieldComparator<Double>
org.hibernate.search.spatial.impl.DistanceComparator
public final class DistanceComparator
- extends org.apache.lucene.search.FieldComparator<Double>
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator |
org.apache.lucene.search.FieldComparator.ByteComparator, org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.NumericComparator<T extends Number>, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.ShortComparator, org.apache.lucene.search.FieldComparator.StringComparatorLocale, org.apache.lucene.search.FieldComparator.StringOrdValComparator, org.apache.lucene.search.FieldComparator.StringValComparator |
Methods inherited from class org.apache.lucene.search.FieldComparator |
binarySearch, binarySearch, compareValues, setScorer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistanceComparator
public DistanceComparator(Point center,
int hitsCount,
String fieldname)
compare
public int compare(int slot1,
int slot2)
- Specified by:
compare
in class org.apache.lucene.search.FieldComparator<Double>
setBottom
public void setBottom(int slot)
- Specified by:
setBottom
in class org.apache.lucene.search.FieldComparator<Double>
compareBottom
public int compareBottom(int doc)
throws IOException
- Specified by:
compareBottom
in class org.apache.lucene.search.FieldComparator<Double>
- Throws:
IOException
copy
public void copy(int slot,
int doc)
throws IOException
- Specified by:
copy
in class org.apache.lucene.search.FieldComparator<Double>
- Throws:
IOException
setNextReader
public void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
- Specified by:
setNextReader
in class org.apache.lucene.search.FieldComparator<Double>
- Throws:
IOException
value
public Double value(int slot)
- Specified by:
value
in class org.apache.lucene.search.FieldComparator<Double>
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved