public class BackgroundTupleResult extends IteratingTupleQueryResult implements Runnable, TupleQueryResultHandler
wrappedIter| Constructor and Description |
|---|
BackgroundTupleResult(QueueCursor<BindingSet> queue,
TupleQueryResultParser parser,
InputStream in) |
BackgroundTupleResult(TupleQueryResultParser parser,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
endQueryResult()
Indicates the end of a sequence of solutions.
|
List<String> |
getBindingNames()
Gets the names of the bindings, in order of projection.
|
void |
handleBoolean(boolean value)
Handles the specified boolean value.
|
protected void |
handleClose()
Closes this Iteration and also closes the wrapped Iteration if it is a
CloseableIteration. |
void |
handleLinks(List<String> linkUrls)
Handles the links elements which are present in SPARQL Results JSON and SPARQL Results XML documents in the
header.
|
void |
handleSolution(BindingSet bindingSet)
Handles a solution.
|
void |
run() |
void |
startQueryResult(List<String> bindingNames)
Indicates the start of a sequence of Solutions.
|
hasNext, next, removeclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititeratorclosehasNext, next, remove, streamforEach, spliteratorpublic BackgroundTupleResult(TupleQueryResultParser parser, InputStream in)
public BackgroundTupleResult(QueueCursor<BindingSet> queue, TupleQueryResultParser parser, InputStream in)
protected void handleClose()
throws QueryEvaluationException
IterationWrapperCloseableIteration.handleClose in class IterationWrapper<BindingSet,QueryEvaluationException>QueryEvaluationExceptionpublic List<String> getBindingNames()
TupleQueryResultgetBindingNames in interface TupleQueryResultgetBindingNames in class IteratingTupleQueryResultpublic void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
QueryResultHandlerstartQueryResult in interface QueryResultHandlerbindingNames - An ordered set of binding names.TupleQueryResultHandlerException - If there was an error during the starting of the query result handler.
This exception may be thrown if the QueryResultHandler.handleBoolean(boolean)
method was called before this method and the handler cannot process both
boolean and tuple results simultaneously.public void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException
QueryResultHandlerhandleSolution in interface QueryResultHandlerbindingSet - A single set of tuple results, with binding names bound to values. Each of the binding names in
the solution must have previously been registered with the QueryResultHandler.startQueryResult(List)
method.TupleQueryResultHandlerException - If there was an error during the handling of the query solution. This
exception may be thrown if the QueryResultHandler.handleBoolean(boolean) method
was called before this method and the handler cannot process both
boolean and tuple results simultaneously.public void endQueryResult()
throws TupleQueryResultHandlerException
QueryResultHandlerendQueryResult in interface QueryResultHandlerTupleQueryResultHandlerException - If there was an error during the ending of the query result handler.
This exception may be thrown if the QueryResultHandler.handleBoolean(boolean)
method was called before this method and the handler cannot process both
boolean and tuple results simultaneously.public void handleBoolean(boolean value)
throws QueryResultHandlerException
QueryResultHandlerhandleBoolean in interface QueryResultHandlervalue - The boolean value to handle.QueryResultHandlerException - If there was an error during the handling of this value. This exception may
be thrown if the QueryResultHandler.startQueryResult(List),
QueryResultHandler.handleSolution(BindingSet) or QueryResultHandler.endQueryResult() methods
were called before this method was called, and the handler cannot process
both boolean and tuple results simultaneously.public void handleLinks(List<String> linkUrls) throws QueryResultHandlerException
QueryResultHandlerNOTE: If the format does not support links, it must silently ignore a call to this method.
An accumulating handler should accumulate these links.
handleLinks in interface QueryResultHandlerlinkUrls - The URLs of the links to handle.QueryResultHandlerException - If there was an error handling the set of link URLs. This error is not thrown
in cases where links are not supported.Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.