|
||||||||||
| 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,
Model m,
QueryIterator iter)
|
|
| Method Summary | |
|---|---|
Model |
getModel()
|
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,
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 ResultSethasNext in interface Iterator<QuerySolution>public Binding nextBinding()
ResultSet
nextBinding in interface ResultSetpublic QuerySolution nextSolution()
nextSolution in interface ResultSetpublic QuerySolution next()
next in interface ResultSetnext in interface Iterator<QuerySolution>public int getRowNumber()
getRowNumber in interface ResultSetpublic List<String> getResultVars()
getResultVars in interface ResultSetpublic Model getModel()
public Model getResourceModel()
ResultSet
getResourceModel in interface ResultSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||