@Override
  public int compareRows(Cell left, byte[] right, int roffset, int rlength) {
    if (left instanceof ByteBufferExtendedCell) {
      return ByteBufferUtils.compareTo(((ByteBufferExtendedCell) left).getRowByteBuffer(),
        ((ByteBufferExtendedCell) left).getRowPosition(), left.getRowLength(), right, roffset,
        rlength);
    }
    return Bytes.compareTo(left.getRowArray(), left.getRowOffset(), left.getRowLength(), right,
      roffset, rlength);
  }
Compares the row part of the cell with a simple plain byte[] like the stopRow in Scan. This
should be used with context where for hbase:meta cells the
{{@link MetaCellComparator#META_COMPARATOR} should be used the cell to be compared the kv
serialized byte[] to be compared with the offset in the byte[] the length in the byte[]
@return 0 if both cell and the byte[] are equal, 1 if the cell is bigger than byte[], -1
        otherwise
hbase-common/src/main/java/org/apache/hadoop/hbase/CellComparatorImpl.java