umehrot2 commented on a change in pull request #873: [HUDI-159] Redesigning
bundles for lighter-weight integrations
URL: https://github.com/apache/incubator-hudi/pull/873#discussion_r320472239
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/util/StringUtils.java
##########
@@ -54,4 +54,15 @@ public static String join(final String[] array, final
String separator) {
return org.apache.hadoop.util.StringUtils.join(separator, array);
}
+ public static String toHexString(byte[] bytes) {
+ StringBuilder sb = new StringBuilder(bytes.length * 2);
+ for (byte b: bytes) {
+ sb.append(String.format("%02x", b));
+ }
+ return sb.toString();
+ }
+
+ public static boolean isEmpty(String str) {
Review comment:
Trivial: may be rename to `isNullOrEmpty`
----------------------------------------------------------------
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]
With regards,
Apache Git Services