iverase opened a new pull request #607:
URL: https://github.com/apache/lucene/pull/607


   In LUCENE-9820 we changed the API for PointValues to expose methods to 
navigate the BKD tree. One important change is the ability to compute the 
number of points below any node of the tree. In order to compute this value 
efficiently we need to know the shape of the tree. 
   
   Since Lucene 8.6, all trees are built as unbalanced trees but in previous 
version there were specialised cases where trees where built as balanced trees. 
This was always the case for trees with dimensions >1 and some edge cases for 
1D. In order to know the tree shape for these specialised cases we need to look 
into the tree itself.
   
   This change looks into how many points are in the last node of the tree for 
1D lucene pre-8.6 indices.  If the value is equal to the reminder of the number 
of points divided by the number of points per leaf the the tree is unbalanced, 
otherwise is balanced.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to