You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/10/02 14:44:42 UTC
[2/2] lucene-solr:branch_7x: LUCENE-7974: nearest() method returning
NearestHit should be private, and NearestHit class should be package private
LUCENE-7974: nearest() method returning NearestHit should be private, and NearestHit class should be package private
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f33ed4ba
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f33ed4ba
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f33ed4ba
Branch: refs/heads/branch_7x
Commit: f33ed4ba12aaf215628d010daaa0e271b8ab3d1f
Parents: b1d4c01
Author: Steve Rowe <sa...@gmail.com>
Authored: Mon Oct 2 10:39:31 2017 -0400
Committer: Steve Rowe <sa...@gmail.com>
Committed: Mon Oct 2 10:39:58 2017 -0400
----------------------------------------------------------------------
.../org/apache/lucene/document/FloatPointNearestNeighbor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f33ed4ba/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
----------------------------------------------------------------------
diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
index b7859d0..90a80b6 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
@@ -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));