peterxcli commented on code in PR #8975:
URL: https://github.com/apache/ozone/pull/8975#discussion_r2308912651


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/StringUtils.java:
##########
@@ -97,4 +97,21 @@ public static String bytes2String(byte[] bytes) {
   public static byte[] string2Bytes(String str) {
     return str.getBytes(UTF8);
   }
+
+  /**
+   * Returns the exclusive upper bound string for the given key, suitable for
+   * range scans and pagination.
+   * <p>
+   * Examples: {@code "a" -> "b"}, {@code "a/b" -> "a/c"}, {@code "a/b/c" -> 
"a/b/d"}.
+   * </p>
+   *
+   * @param key the key to get the upper bound of (non-null); if empty, 
returns an empty string
+   * @return the upper bound of the key (exclusive)
+   */
+  public static String getKeyUpperBound(String key) {

Review Comment:
   nvm



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