com.hp.hpl.jena.query
Interface ResultSet

All Superinterfaces:
Iterator<QuerySolution>
All Known Subinterfaces:
ResultSetPeekable, ResultSetRewindable, ResultSetRewindable
All Known Implementing Classes:
RDFInput, ResultSetMem, ResultSetPeeking, ResultSetStream, SortedResultSet

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:
Query, QueryExecution, QuerySolution

Method Summary
 Model getResourceModel()
          Get the model that resources are created against - may be null
 List<String> getResultVars()
          Get the variable names for the projection.
 int getRowNumber()
          Return the "row" number for the current iterator item
 boolean hasNext()
          Is there another result?
 QuerySolution next()
          Moves onto the next result.
 Binding nextBinding()
          Move to the next binding (low level)
 QuerySolution nextSolution()
          Moves onto the next result (legacy - use .next()).
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

hasNext

boolean hasNext()
Is there another result?

Specified by:
hasNext in interface Iterator<QuerySolution>

next

QuerySolution next()
Moves onto the next result.

Specified by:
next in interface Iterator<QuerySolution>

nextSolution

QuerySolution nextSolution()
Moves onto the next result (legacy - use .next()).


nextBinding

Binding nextBinding()
Move to the next binding (low level)


getRowNumber

int getRowNumber()
Return the "row" number for the current iterator item


getResultVars

List<String> getResultVars()
Get the variable names for the projection. Not all query solutions from a result have every variable defined.


getResourceModel

Model getResourceModel()
Get the model that resources are created against - may be null



Licenced under the Apache License, Version 2.0