- All Superinterfaces:
- All Known Subinterfaces:
- All Known Implementing Classes:
public interface ResultSet extends Iterator<QuerySolution>
Results from a query in a table-like manner for SELECT queries. Each row corresponds to a set of bindings which fulfil the conditions of the query. Access to the results is by variable name.
- See Also:
Method SummaryModifier and TypeMethodDescription
close()Get the model that resources are created against - may be nullGet the variable names for the projection.
intReturn the "row" number for the current iterator item
hasNext()Is there another result?
default ResultSetReturn a
ResultSetthat is not connected to the original source.
next()Moves onto the next result.Move to the next binding (low level)Moves onto the next result (legacy - use .next()).
default ResultSetRewindableConvert this result set to a
Methods inherited from interface java.util.Iterator
hasNextboolean hasNext()Is there another result?
- Specified by:
nextQuerySolution next()Moves onto the next result.
- Specified by:
nextSolutionQuerySolution nextSolution()Moves onto the next result (legacy - use .next()).
nextBindingBinding nextBinding()Move to the next binding (low level)
getRowNumberint getRowNumber()Return the "row" number for the current iterator item
getResultVarsGet the variable names for the projection. Not all query solutions from a result have every variable defined.
getResourceModelModel getResourceModel()Get the model that resources are created against - may be null
rewindabledefault ResultSetRewindable rewindable()Convert this result set to a
Warning: this is likely a copy:
- "this" result set is consumed and not reusable.
- the copy is in-memory
Example of use:
ResultSetRewindable rs = queryExecution.execSelect().rewindable();
materialisedefault ResultSet materialise()Return a
ResultSetthat is not connected to the original source. This consumes this ResultSet and produces another one.