kkewwei commented on code in PR #16835:
URL: https://github.com/apache/lucene/pull/16835#discussion_r4383639004
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90DocValuesProducer.java:
##########
@@ -562,6 +562,19 @@ private static long[] transformGcdBounds(long minValue,
long maxValue, long mul,
return new long[] {encodedMin, encodedMax};
}
+ private static long[] transformTableBounds(long[] table, long minValue, long
maxValue) {
+ int minOrd = Arrays.binarySearch(table, minValue);
+ if (minOrd < 0) {
+ minOrd = -1 - minOrd;
Review Comment:
Yes, it was confusing to read. Added a comment to clarify it.
--
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]