|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.impl.TupleQueryResultImpl
org.openrdf.repository.sparql.query.BackgroundTupleResult
public class BackgroundTupleResult
Provides concurrent access to tuple results as they are being parsed.
| Constructor Summary | |
|---|---|
BackgroundTupleResult(QueueCursor<BindingSet> queue,
TupleQueryResultParser parser,
InputStream in,
org.apache.commons.httpclient.HttpMethod connection)
|
|
BackgroundTupleResult(TupleQueryResultParser parser,
InputStream in,
org.apache.commons.httpclient.HttpMethod connection)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this iteration, freeing any resources that it is holding. |
void |
endQueryResult()
Indicates the end of a sequence of solutions. |
List<String> |
getBindingNames()
Gets the names of the bindings, in order of projection. |
void |
handleSolution(BindingSet bindingSet)
Handles a solution. |
void |
run()
|
void |
startQueryResult(List<String> bindingNames)
Indicates the start of a sequence of Solutions. |
| Methods inherited from class org.openrdf.query.impl.TupleQueryResultImpl |
|---|
hasNext, next, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.aduna.iteration.Iteration |
|---|
hasNext, next, remove |
| Constructor Detail |
|---|
public BackgroundTupleResult(TupleQueryResultParser parser,
InputStream in,
org.apache.commons.httpclient.HttpMethod connection)
public BackgroundTupleResult(QueueCursor<BindingSet> queue,
TupleQueryResultParser parser,
InputStream in,
org.apache.commons.httpclient.HttpMethod connection)
| Method Detail |
|---|
public void close()
throws QueryEvaluationException
CloseableIteration
close in interface CloseableIteration<BindingSet,QueryEvaluationException>close in class TupleQueryResultImplQueryEvaluationExceptionpublic List<String> getBindingNames()
TupleQueryResult
getBindingNames in interface TupleQueryResultgetBindingNames in class TupleQueryResultImplpublic void run()
run in interface Runnable
public void startQueryResult(List<String> bindingNames)
throws TupleQueryResultHandlerException
TupleQueryResultHandler
startQueryResult in interface TupleQueryResultHandlerbindingNames - An ordered set of binding names.
TupleQueryResultHandlerException
public void handleSolution(BindingSet bindingSet)
throws TupleQueryResultHandlerException
TupleQueryResultHandler
handleSolution in interface TupleQueryResultHandlerTupleQueryResultHandlerException
public void endQueryResult()
throws TupleQueryResultHandlerException
TupleQueryResultHandler
endQueryResult in interface TupleQueryResultHandlerTupleQueryResultHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||