public static ExtendedCell createFirstOnNextRow(final Cell cell) {
    byte[] nextRow = new byte[cell.getRowLength() + 1];
    CellUtil.copyRowTo(cell, nextRow, 0);
    nextRow[nextRow.length - 1] = 0;// maybe not necessary
    return new FirstOnRowCell(nextRow, 0, (short) nextRow.length);
  }
Create a Cell that is smaller than all other possible Cells for the given Cell's row.
@return First possible Cell on passed Cell's row.
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java