code: protected void appendPagination(SolrQuery query, @Nullable Long offset, @Nullable Integer rows) {
  
  		if (offset != null && offset.intValue() >= 0) {
  			query.setStart(offset.intValue());
  		}
  		if (rows != null && rows >= 0) {
  			query.setRows(rows);
  		}
  	}
docs: Append pagination information {@code start, rows} to {@link SolrQuery}
  
  @param query
  @param offset
  @param rows