|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.rdql.QueryResultsStream
public class 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
,
ResultBindingImpl
,
QueryResultsStream
Constructor Summary | |
---|---|
QueryResultsStream(Query query,
QueryExecution qe,
Iterator iter)
|
Method Summary | |
---|---|
void |
close()
Close the results iterator and stop query evaluation as soon as convenient. |
List |
getAll()
Deprecated. QueryResultsStream do not have all the results at once - QueryResultsMem |
String |
getBinding(String name)
Access a binding (a mapping from variable name to value). |
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? |
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, Iterator iter)
Method Detail |
---|
public void remove() throws UnsupportedOperationException
remove
in interface QueryResults
remove
in interface Iterator
UnsupportedOperationException
- Always thrown.public boolean hasNext()
hasNext
in interface QueryResults
hasNext
in interface Iterator
public Object next()
next
in interface QueryResults
next
in interface Iterator
public void close()
close
in interface QueryResults
public String getBinding(String name)
public int getRowNumber()
getRowNumber
in interface QueryResults
public List getResultVars()
getResultVars
in interface QueryResults
public List getAll()
QueryResultsMem
ResultBindingImpl
s.
getAll
in interface QueryResults
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |