Class BackgroundTupleResult
- java.lang.Object
-
- org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E,X>
-
- org.eclipse.rdf4j.common.iteration.IterationWrapper<BindingSet,QueryEvaluationException>
-
- org.eclipse.rdf4j.query.impl.IteratingTupleQueryResult
-
- org.eclipse.rdf4j.query.resultio.helpers.BackgroundTupleResult
-
- All Implemented Interfaces:
AutoCloseable,Iterable<BindingSet>,Runnable,org.eclipse.rdf4j.common.iteration.CloseableIteration<BindingSet,QueryEvaluationException>,org.eclipse.rdf4j.common.iteration.Iteration<BindingSet,QueryEvaluationException>,QueryResult<BindingSet>,QueryResultHandler,TupleQueryResult,TupleQueryResultHandler
public class BackgroundTupleResult extends IteratingTupleQueryResult implements Runnable, TupleQueryResultHandler
Provides concurrent access to tuple results as they are being parsed.- Author:
- James Leigh
-
-
Constructor Summary
Constructors Constructor Description BackgroundTupleResult(QueueCursor<BindingSet> queue, TupleQueryResultParser parser, InputStream in)BackgroundTupleResult(TupleQueryResultParser parser, InputStream in, WeakReference<?> callerRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendQueryResult()List<String>getBindingNames()voidhandleBoolean(boolean value)protected voidhandleClose()voidhandleLinks(List<String> linkUrls)voidhandleSolution(BindingSet bindingSet)voidrun()voidstartQueryResult(List<String> bindingNames)-
Methods inherited from class org.eclipse.rdf4j.common.iteration.IterationWrapper
hasNext, next, remove
-
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.eclipse.rdf4j.common.iteration.Iteration
hasNext, next, remove, stream
-
Methods inherited from interface org.eclipse.rdf4j.query.QueryResult
iterator
-
-
-
-
Constructor Detail
-
BackgroundTupleResult
public BackgroundTupleResult(TupleQueryResultParser parser, InputStream in, WeakReference<?> callerRef)
-
BackgroundTupleResult
public BackgroundTupleResult(QueueCursor<BindingSet> queue, TupleQueryResultParser parser, InputStream in)
-
-
Method Detail
-
handleClose
protected void handleClose() throws QueryEvaluationException- Overrides:
handleClosein classorg.eclipse.rdf4j.common.iteration.IterationWrapper<BindingSet,QueryEvaluationException>- Throws:
QueryEvaluationException
-
getBindingNames
public List<String> getBindingNames()
- Specified by:
getBindingNamesin interfaceTupleQueryResult- Overrides:
getBindingNamesin classIteratingTupleQueryResult
-
startQueryResult
public void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
- Specified by:
startQueryResultin interfaceQueryResultHandler- Throws:
TupleQueryResultHandlerException
-
handleSolution
public void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException
- Specified by:
handleSolutionin interfaceQueryResultHandler- Throws:
TupleQueryResultHandlerException
-
endQueryResult
public void endQueryResult() throws TupleQueryResultHandlerException- Specified by:
endQueryResultin interfaceQueryResultHandler- Throws:
TupleQueryResultHandlerException
-
handleBoolean
public void handleBoolean(boolean value) throws QueryResultHandlerException- Specified by:
handleBooleanin interfaceQueryResultHandler- Throws:
QueryResultHandlerException
-
handleLinks
public void handleLinks(List<String> linkUrls) throws QueryResultHandlerException
- Specified by:
handleLinksin interfaceQueryResultHandler- Throws:
QueryResultHandlerException
-
-