@Override
  public int compareRows(ByteBuffer row, Cell cell) {
    if (cell instanceof ByteBufferExtendedCell) {
      ByteBufferExtendedCell bbCell = (ByteBufferExtendedCell) cell;
      return compareBBRows(row, row.position(), row.remaining(), bbCell.getRowByteBuffer(),
        bbCell.getRowPosition(), cell.getRowLength());
    } else {
      return compareBBAndBytesRows(row, row.position(), row.remaining(), cell.getRowArray(),
        cell.getRowOffset(), cell.getRowLength());
    }
  }
A {@link MetaCellComparator} for <code>hbase:meta</code> catalog table {@link KeyValue}s.
hbase-common/src/main/java/org/apache/hadoop/hbase/MetaCellComparator.java