Description
In HFileReaderV2.AbstractScannerV2.reseekTo(...) we have this:
ByteBuffer bb = getKey(); compared = reader.getComparator().compare(key, offset, length, bb.array(), bb.arrayOffset(), bb.limit());
getKey() creates two ByteBuffers in ScannerV2 and makes a deep copy of the key in EncodedScannerV2.