public static String convertAttributesToCsv(List<NameBytesPair> attributes) {
    if (attributes.isEmpty()) {
      return HConstants.EMPTY_STRING;
    }
    return deserializeAttributes(convertNameBytesPairsToMap(attributes)).entrySet().stream()
      .map(entry -> entry.getKey() + " = " + entry.getValue()).collect(Collectors.joining(", "));
  }
Convert a list of NameBytesPair to a more readable CSV
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java