@Override
  public int compareRows(Cell left, byte[] right, int roffset, int rlength) {
    if (left instanceof ByteBufferExtendedCell) {
      ByteBufferExtendedCell bbLeft = (ByteBufferExtendedCell) left;
      return compareBBAndBytesRows(bbLeft.getRowByteBuffer(), bbLeft.getRowPosition(),
        left.getRowLength(), right, roffset, rlength);
    } else {
      return compareBytesRows(left.getRowArray(), left.getRowOffset(), left.getRowLength(), right,
        roffset, rlength);
    }
  }
A {@link MetaCellComparator} for <code>hbase:meta</code> catalog table {@link KeyValue}s.
hbase-common/src/main/java/org/apache/hadoop/hbase/MetaCellComparator.java