Apache9 commented on code in PR #4647:
URL: https://github.com/apache/hbase/pull/4647#discussion_r931989397
##########
hbase-examples/src/main/java/org/apache/hadoop/hbase/util/ClientUtils.java:
##########
@@ -110,4 +109,13 @@ public static String utf8(final byte[] buf) {
}
}
+ /**
+ * Helper to translate a byte buffer to UTF8 strings
+ * @param buf byte buffer
+ * @return UTF8 decoded string value
+ */
+ public static String utf8(final ByteBuffer buf) {
+ return buf.toString();
Review Comment:
I do not think this is what we want? We should copy the content a byte array
and then call the above utf8 method?
--
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]