Class NearestNeighbor.Cell

    • Field Detail

      • readerIndex

        final int readerIndex
      • minPacked

        final byte[] minPacked
      • maxPacked

        final byte[] maxPacked
      • distanceSortKey

        final double distanceSortKey
        The closest distance from a point in this cell to the query point, computed as a sort key through SloppyMath.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 Detail

      • Cell

        public Cell​(BKDReader.IndexTree index,
                    int readerIndex,
                    byte[] minPacked,
                    byte[] maxPacked,
                    double distanceSortKey)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object