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 as needed and keeps fetched rows in memory. See paging errors for how the iterator reports a failed fetch. Calling next() on an exhausted iterator throws NoSuchElementException.
Keep the originating PolyStatement and its connection available until iteration is complete. The JDBC ResultSet provides standard SQL metadata and access by column label.
Column metadata
RelationalResult.getMetadata() returns the column count and metadata even when the result has no rows. Call getColumnCount() and getColumnMeta(int) on the metadata. Column indices start at zero. Use getColumnLabel() for the projected label and getProtocolTypeName() for the Prism type name, such as PATH for a path column.
Use PolyRow.get(String) to read a value using the label supplied by the server. Read graph-valued columns
The driver builds the result using RelationalResult(Frame, PolyStatement). Applications normally obtain it through execute.