Protected get start row number
553764
protected function getStartRowNumber($start)
    {
        if( $this->start !== NULL )
        {
            $start = (int) $this->start;
        }

        if( empty($start) && ! is_numeric($start) )
        {
            return ! is_numeric($segment = URI::segment(-1)) ? 0 : $segment;
        }
        
        return ! is_numeric($start) ? 0 : $start;
    }
674126
public function getRowAt($row_num)
    {
        if ($this->seek($row_num)) {
            $this->next();

            return $this->getCurrentRow();
        } else {
            return null;
        }
    }
603038
private String getRow(String rowKey) {
        try {
            return cache.get(rowKey);
        } catch (Exception e) {
            if (e.getCause() instanceof RowNotFoundException) {
                return null;
            }
            throw new RuntimeException(e);
        }
    }
1266271
@Override
    public int rowCount() {
        int result = 0;
        if (!columnList.isEmpty()) {
            // all the columns have the same number of elements, so we can check any of them
            result = columnList.get(0).size();
        }
        return result;
    }
1211106
def getvarcol(self, startrow=0, nrow=-1, rowincr=1):
        """"""
        return self._table.getvarcol(self._column, startrow, nrow, rowincr)
946913
def previous_row(self):
        """"""
        row = self.currentIndex().row()
        rows = self.proxy_model.rowCount()
        if row == 0:
            row = rows
        self.selectRow(row - 1)
403995
public function getFirstRow()
    {
        $rows = $this->data['rows'];
        if (empty($rows)) {
            return false;
        }

        $row = array_slice($rows, 0, 1);

        return current($row);
    }
268431
static KeyRange keyRangeStartRow(byte[] startRowKey) {
        KeyRange keyRange = new KeyRange();
        keyRange.setStart_key(startRowKey);
        keyRange.setEnd_key(EMPTY_BYTE_BUFFER);
        keyRange.setCount(MAX_ROWS_BATCH_SIZE);
        return keyRange;
    }
1281799
public static int getFirstRow(RowSelection selection) {
		return (selection == null || selection.getFirstRow() == null) ? 0 : selection.getFirstRow();
	}
1198178
public function prev()
    {
        if ($this->position <= $this->startRow) {
            throw new PHPExcel_Exception("Row is already at the beginning of range ({$this->startRow} - {$this->endRow})");
        }

        do {
            --$this->position;
        } while (($this->onlyExistingCells) &&
            (!$this->subject->cellExistsByColumnAndRow($this->columnIndex, $this->position)) &&
            ($this->position >= $this->startRow));
    }
1196928
def _number_of_rows(self, start=0, count=100, **kwargs):
        """"""
        first = str(start)
        last = str(start + count)
        string_format = ':'.join([first, last])
        return string_format
1194474
public int getRowCount() {
    if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_rowCount == null)
      jcasType.jcas.throwFeatMissing("rowCount", "ch.epfl.bbp.uima.types.DataTable");
    return jcasType.ll_cas.ll_getIntValue(addr, ((DataTable_Type)jcasType).casFeatCode_rowCount);}
656350
private boolean includeInStartPosition(final int currentColumn, final int currentRow) {
        
        if(startColumn >=0 && startRow >= 0
                && currentColumn == startColumn && currentRow == startRow) {
            // 行と列の両方の指定がある場合
            return true;
            
        } else if(startColumn >= 0 && startRow < 0 && currentColumn == startColumn) {
            // 列の指定のみ
            return true;
            
        } else if(startColumn < 0 && startRow >= 0 && currentRow == startRow) {
            // 行の指定のみ
            return true;
            
        }
        
        return false;
        
    }
617396
public Integer getSelectedRow() {
        final Object result = getStateHelper().eval(PropertyKeys.selectedRow);
        if (result == null) {
            return null;
        }
        return Integer.valueOf(result.toString());
    }
194285
private List<Integer> getRowIds(final int startIndex, final int endIndex) {
		// If the table is sorted, we may require a mapping for table row index <--> data model index.
		int[] rowIndexMapping = getComponentModel().rowIndexMapping;

		// Check if sort mapping needs updating
		if (isSorted() && rowIndexMapping != null && rowIndexMapping.length != getDataModel().
				getRowCount()) {
			rowIndexMapping = getDataModel().sort(getSortColumnIndex(), isSortAscending());
			getOrCreateComponentModel().rowIndexMapping = rowIndexMapping;
		}

		if (rowIndexMapping == null) {
			// No mapping, return from startIndex to endIndex
			return new RowIdList(startIndex, endIndex);
		} else {
			List<Integer> rowIds = new ArrayList<>(endIndex - startIndex + 1);

			for (int i = startIndex; i <= endIndex; i++) {
				rowIds.add(rowIndexMapping[i]);
			}

			return rowIds;
		}

	}
682397
private List<RowIdWrapper> getRowIds(final int startIndex, final int endIndex,
			final boolean forUpdate) {
		TableModel model = getTableModel();

		// If the table is sorted, we may require a mapping for table row index <--> data model index.
		int[] rowIndexMapping = getComponentModel().rowIndexMapping;

		// Check if sort mapping needs updating
		if (isSorted() && rowIndexMapping != null && rowIndexMapping.length != model.getRowCount()) {
			rowIndexMapping = model.sort(getSortColumnIndex(), isSortAscending());
			getOrCreateComponentModel().rowIndexMapping = rowIndexMapping;
		}

		List<RowIdWrapper> rowIds = new ArrayList<>(endIndex - startIndex + 1);

		ExpandMode mode = getExpandMode();
		boolean expandable = mode != ExpandMode.NONE;

		// Expanded rows - for update, include rows that have been previously expanded
		Set<?> expanded = null;
		if (expandable) {
			expanded = forUpdate ? getPrevExpandedRows() : getExpandedRows();
		}

		// Rendered rows - for update, only process rows that have been rendered
		Set<?> rendered = null;
		int renderedCount = 0;
		if (forUpdate) {
			rendered = getPrevRenderedRows();
			// Check if no rows previously rendered
			if (rendered.isEmpty()) {
				return Collections.EMPTY_LIST;
			}
		}

		boolean editable = isEditable();

		for (int i = startIndex; i <= endIndex; i++) {
			// Create top level
			List<Integer> rowIndex = new ArrayList<>(1);

			// Map ids (if sorted)
			if (rowIndexMapping == null) {
				rowIndex.add(i);
			} else {
				rowIndex.add(rowIndexMapping[i]);
			}

			// Row key
			Object key = model.getRowKey(rowIndex);

			// For update, only process rows that have been rendered
			if (forUpdate && !rendered.contains(key)) {
				continue;
			}

			// Create wrapper
			RowIdWrapper wrapper = new RowIdWrapper(rowIndex, key, null);

			if (expandable) {
				calcChildrenRowIds(rowIds, wrapper, model, null, expanded, mode, forUpdate, editable);
			} else {
				rowIds.add(wrapper);
			}

			// For update, check if all rendered rows have been processed
			if (forUpdate) {
				renderedCount++;
				if (renderedCount == rendered.size()) {
					// No need to keep processing
					break;
				}
			}

			// For render, keep rows that have been rendered for update logic (only if table editable)
			if (editable && !forUpdate) {
				addPrevRenderedRow(key);
			}
		}

		// Set the position of each row in the list of row ids.
		int i = 0;
		for (RowIdWrapper row : rowIds) {
			row.setPosition(i++);
		}

		return rowIds;
	}
565406
protected int getStartValue(Connection con)
   {

      Statement stmt = null;
      ResultSet trs = null;
      try
      {
         String query;

         String tableItem = DBInitializerHelper.getItemTableName(containerConfig);
         if (JDBCUtils.tableExists(tableItem, con))
         {
            query = "select max(N_ORDER_NUM) from " + tableItem;
         }
         else
         {
            return -1;
         }
         stmt = con.createStatement();
         trs = stmt.executeQuery(query);
         if (trs.next() && trs.getInt(1) >= 0)
         {
            return trs.getInt(1);
         }
         else
         {
            return -1;
         }

      }
      catch (SQLException e)
      {
         if (LOG.isDebugEnabled())
         {
            LOG.debug("SQLException occurred while calculate the sequence start value", e);
         }
         return -1;
      }
      finally
      {
         JDBCUtils.freeResources(trs, stmt, null);
      }
   }