|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.sparql.engine.ResultSetStream
public class ResultSetStream
The main ResultSet implementation for returning results from queries. This version is "use once" - you can not reset the result set because the results of the query are not remembered so as not to consume potentially large amounts of memory.
Constructor Summary | |
---|---|
ResultSetStream(List<String> resultVars,
com.hp.hpl.jena.rdf.model.Model m,
QueryIterator iter)
|
Method Summary | |
---|---|
com.hp.hpl.jena.rdf.model.Model |
getModel()
|
com.hp.hpl.jena.rdf.model.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" - a count of the number of possibilities returned so far. |
boolean |
hasNext()
Is there another possibility? |
QuerySolution |
next()
Moves onto the next result possibility. |
Binding |
nextBinding()
Move to the next binding (low level) |
QuerySolution |
nextSolution()
Moves onto the next result possibility. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetStream(List<String> resultVars, com.hp.hpl.jena.rdf.model.Model m, QueryIterator iter)
Method Detail |
---|
public void remove() throws UnsupportedOperationException
remove
in interface Iterator<QuerySolution>
UnsupportedOperationException
- Always thrown.public boolean hasNext()
hasNext
in interface ResultSet
hasNext
in interface Iterator<QuerySolution>
public Binding nextBinding()
ResultSet
nextBinding
in interface ResultSet
public QuerySolution nextSolution()
nextSolution
in interface ResultSet
public QuerySolution next()
next
in interface ResultSet
next
in interface Iterator<QuerySolution>
public int getRowNumber()
getRowNumber
in interface ResultSet
public List<String> getResultVars()
getResultVars
in interface ResultSet
public com.hp.hpl.jena.rdf.model.Model getModel()
public com.hp.hpl.jena.rdf.model.Model getResourceModel()
ResultSet
getResourceModel
in interface ResultSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |