public static ExtendedCell createLastOnRow(final Cell cell) {
    if (cell instanceof ByteBufferExtendedCell) {
      return new LastOnRowByteBufferExtendedCell(((ByteBufferExtendedCell) cell).getRowByteBuffer(),
        ((ByteBufferExtendedCell) cell).getRowPosition(), cell.getRowLength());
    }
    return new LastOnRowCell(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength());
  }
Create a Cell that is larger than all other possible Cells for the given Cell's row.
@return Last possible Cell on passed Cell's row.
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java