mirror of https://github.com/apache/lucene.git
LUCENE-7974: nearest() method returning NearestHit should be private, and NearestHit class should be package private
This commit is contained in:
parent
73f3403381
commit
74050a3f15
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue