public static KeyValue createKeyValueFromKey(final ByteBuffer bb) {
    return createKeyValueFromKey(bb.array(), bb.arrayOffset(), bb.limit());
  }
Return a KeyValue made of a byte buffer that holds the key-only part. Needed to convert hfile
index members to KeyValues.
hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java