Method: InterMine::PathQuery::Query#rows

Defined in:
lib/intermine/query.rb

#rows(start = nil, size = nil) ⇒ Object

Returns an Enumerable 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"


483
484
485
486
487
# File 'lib/intermine/query.rb', line 483

def rows(start=nil, size=nil)
    start = start.nil? ? @start : start
    size  = size.nil? ? @size : size
    return Results::RowReader.new(@url, self, start, size)
end