org.polypheny.jdbc.multimodel.RelationalResult is a Result of type RELATIONAL. It implements Iterable<PolyRow>. Get it by unwrapping a result that contains a relational frame. Each PolyRow holds the column values in result order.
iterator
iterator() returns a Java Iterator<PolyRow>, so you can use a for-each loop. Iteration starts at the first row. It fetches additional frames synchronously as needed and keeps fetched rows in memory. A fetch failure propagates as a RuntimeException whose cause is the PrismInterfaceServiceException. Calling next() on an exhausted iterator throws NoSuchElementException.
Keep the originating PolyStatement and its connection available until iteration is complete. For SQL column metadata and access by column label, use the JDBC ResultSet.
The driver builds the result using RelationalResult(Frame, PolyStatement). Applications normally obtain it through execute.