private static int compareBBRows(ByteBuffer left, int loffset, int llength, ByteBuffer right,
    int roffset, int rlength) {
    if (left.hasArray()) {
      return -compareBBAndBytesRows(right, roffset, rlength, left.array(),
        left.arrayOffset() + loffset, llength);
    }
    if (right.hasArray()) {
      return compareBBAndBytesRows(left, loffset, llength, right.array(),
        right.arrayOffset() + roffset, rlength);
    }
    return compareRows(left, loffset, llength, right, roffset, rlength,
      ByteBufferUtils::searchDelimiterIndex, ByteBufferUtils::searchDelimiterIndex,
      ByteBufferUtils::searchDelimiterIndexInReverse,
      ByteBufferUtils::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