lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr:branch_6_0: remove unnecessary confusing parameters
Date Tue, 22 Mar 2016 15:34:56 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6_0 a9057e63f -> 626533bc6


remove unnecessary confusing parameters


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/626533bc
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/626533bc
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/626533bc

Branch: refs/heads/branch_6_0
Commit: 626533bc6ef6db842e94f5e96bb294f9380ce321
Parents: a9057e6
Author: Mike McCandless <mikemccand@apache.org>
Authored: Tue Mar 22 11:35:02 2016 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Tue Mar 22 11:36:10 2016 -0400

----------------------------------------------------------------------
 lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/626533bc/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java b/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
index eee590c..885f121 100644
--- a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
@@ -557,7 +557,7 @@ public class BKDWriter implements Closeable {
   // encoding and not have our own ByteSequencesReader/Writer
 
   /** Sort the heap writer by the specified dim */
-  private void sortHeapPointWriter(final HeapPointWriter writer, int start, int length, int
dim) {
+  private void sortHeapPointWriter(final HeapPointWriter writer, int dim) {
 
     assert pointCount < Integer.MAX_VALUE;
     //int[] swapCount = new int[1];
@@ -642,7 +642,7 @@ public class BKDWriter implements Closeable {
         // can't matter at search time since we don't write ords into the index:
         return Integer.compare(writer.docIDs[i], writer.docIDs[j]);
       }
-    }.sort(start, start+length);
+    }.sort(0, Math.toIntExact(pointCount));
     //System.out.println("LEN=" + length + " SWAP=" + swapCount[0] + " CMP=" + cmpCount[0]);
   }
 
@@ -665,7 +665,7 @@ public class BKDWriter implements Closeable {
       }
 
       //long t0 = System.nanoTime();
-      sortHeapPointWriter(sorted, 0, (int) pointCount, dim);
+      sortHeapPointWriter(sorted, dim);
       //long t1 = System.nanoTime();
       //System.out.println("BKD: sort took " + ((t1-t0)/1000000.0) + " msec");
 


Mime
View raw message