|
||||||||||
| 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 QueryResultsremove in interface IteratorUnsupportedOperationException - Always thrown.public boolean hasNext()
hasNext in interface QueryResultshasNext in interface Iteratorpublic Object next()
next in interface QueryResultsnext in interface Iteratorpublic void close()
close in interface QueryResultspublic String getBinding(String name)
public int getRowNumber()
getRowNumber in interface QueryResultspublic List getResultVars()
getResultVars in interface QueryResultspublic List getAll()
QueryResultsMem
ResultBindingImpls.
getAll in interface QueryResults
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||