private static int compareBBAndBytesRows(ByteBuffer left, int loffset, int llength, byte[] right,
    int roffset, int rlength) {
    if (left.hasArray()) {
      return compareBytesRows(left.array(), left.arrayOffset() + loffset, llength, right, roffset,
        rlength);
    }
    return compareRows(left, loffset, llength, right, roffset, rlength,
      ByteBufferUtils::searchDelimiterIndex, Bytes::searchDelimiterIndex,
      ByteBufferUtils::searchDelimiterIndexInReverse, Bytes::searchDelimiterIndexInReverse,
      ByteBufferUtils::compareTo);
  }
A {@link MetaCellComparator} for <code>hbase:meta</code> catalog table {@link KeyValue}s.
hbase-common/src/main/java/org/apache/hadoop/hbase/MetaCellComparator.java