Module org.apache.lucene.sandbox
Package org.apache.lucene.sandbox.search
Class NearestNeighbor.Cell
java.lang.Object
org.apache.lucene.sandbox.search.NearestNeighbor.Cell
- All Implemented Interfaces:
Comparable<NearestNeighbor.Cell>
- Enclosing class:
- NearestNeighbor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final double
The closest distance from a point in this cell to the query point, computed as a sort key throughSloppyMath.haversinSortKey(double, double, double, double)
.(package private) final PointValues.PointTree
(package private) final byte[]
(package private) final byte[]
(package private) final int
-
Constructor Summary
ConstructorsConstructorDescriptionCell
(PointValues.PointTree index, int readerIndex, byte[] minPacked, byte[] maxPacked, double distanceSortKey) -
Method Summary
-
Field Details
-
readerIndex
final int readerIndex -
minPacked
final byte[] minPacked -
maxPacked
final byte[] maxPacked -
index
-
distanceSortKey
final double distanceSortKeyThe closest distance from a point in this cell to the query point, computed as a sort key throughSloppyMath.haversinSortKey(double, double, double, double)
. Note that this is an approximation to the closest distance, and there could be a point in the cell that is closer.
-
-
Constructor Details
-
Cell
public Cell(PointValues.PointTree index, int readerIndex, byte[] minPacked, byte[] maxPacked, double distanceSortKey)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<NearestNeighbor.Cell>
-
toString
-