|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.rdql.QueryResultsStream
The main QueryResults implementation for returning results from queries. This version is "use once" - you can not reset the result set because the resulys of the query are not remembered so as not to consume potentially large amounts of memory.
Query
,
QueryEngine
,
ResultBinding
,
QueryResultsStream
Constructor Summary | |
QueryResultsStream(Query query,
QueryExecution qe,
java.util.Iterator iter)
|
Method Summary | |
void |
close()
Close the results iterator and stop query evaluation as soon as convenient. |
java.util.List |
getAll()
Deprecated. QueryResultsStream do not have all the results at once - QueryResultsMem |
java.lang.String |
getBinding(java.lang.String name)
Access a binding (a mapping from variable name to value). |
java.util.List |
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? |
java.lang.Object |
next()
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 QueryResultsStream(Query query, QueryExecution qe, java.util.Iterator iter)
Method Detail |
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface QueryResults
java.lang.UnsupportedOperationException
- Always thrown.public boolean hasNext()
hasNext
in interface QueryResults
public java.lang.Object next()
next
in interface QueryResults
public void close()
close
in interface QueryResults
public java.lang.String getBinding(java.lang.String name)
public int getRowNumber()
getRowNumber
in interface QueryResults
public java.util.List getResultVars()
getResultVars
in interface QueryResults
public java.util.List getAll()
QueryResultsMem
ResultBinding
s.
getAll
in interface QueryResults
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |