public static String keyToString(final byte[] k) {
    if (k == null) {
      return "";
    }
    return keyToString(k, 0, k.length);
  }
Return key as a String, empty string if k is null.
hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java