LUCENE-7974: nearest() method returning NearestHit should be private, and NearestHit class should be package private

This commit is contained in:
Steve Rowe 2017-10-02 10:39:31 -04:00
parent 73f3403381
commit 74050a3f15
1 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ public class FloatPointNearestNeighbor {
}
/** Holds one hit from {@link FloatPointNearestNeighbor#nearest} */
public static class NearestHit {
static class NearestHit {
public int docID;
public double distanceSquared;
@ -204,7 +204,7 @@ public class FloatPointNearestNeighbor {
}
}
public static NearestHit[] nearest(List<BKDReader> readers, List<Bits> liveDocs, List<Integer> docBases, final int topN, float[] origin) throws IOException {
private static NearestHit[] nearest(List<BKDReader> readers, List<Bits> liveDocs, List<Integer> docBases, final int topN, float[] origin) throws IOException {
// System.out.println("NEAREST: readers=" + readers + " liveDocs=" + liveDocs + " origin: " + Arrays.toString(origin));