LuXugang commented on code in PR #12405:
URL: https://github.com/apache/lucene/pull/12405#discussion_r1275872536


##########
lucene/core/src/java/org/apache/lucene/util/NumericUtils.java:
##########
@@ -132,6 +132,52 @@ public static void add(int bytesPerDim, int dim, byte[] a, 
byte[] b, byte[] resu
     }
   }
 
+  /**
+   * Modify in-place the given bytes to the next value of the same length that 
compares greater than
+   * the current value. This returns false if, and only if, the value is 
currently equal to the
+   * maximum possible value.
+   */
+  public static boolean nextUp(byte[] bytes) {

Review Comment:
   Thank you for your explanation! @jpountz  



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to