jpountz commented on a change in pull request #1464:
URL: https://github.com/apache/lucene-solr/pull/1464#discussion_r417948820
##########
File path: lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
##########
@@ -730,6 +730,22 @@ private void rotateToTree(int nodeID, int offset, int
count, byte[] index, List<
return newLeafBlockFPs;
}
+ private int getNumLeftLeaveNodes(int numLeaves) {
+ // return the max level for this number of leaves. If level is full it
returns the next level
+ int maxLevel = 32 - Integer.numberOfLeadingZeros(numLeaves);
Review comment:
this makes sense to me
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]