Method: InterMine::PathQuery::Query#rows
- Defined in:
- lib/intermine/query.rb
#rows(start = 0, size = nil) ⇒ Object
Returns an Array of ResultRow objects containing the data returned by running this query, starting at the given offset and containing up to the given maximum size.
The webservice enforces a maximum page-size of 10,000,000 rows, independent of any size you specify - this can be obviated with paging for large result sets.
rows = query.rows
rows.last["symbol"]
=> "eve"
417 418 419 420 421 422 423 |
# File 'lib/intermine/query.rb', line 417 def rows(start=0, size=nil) res = [] results_reader(start, size).each_row {|row| res << row } res end |