Class WorkerUnionBase<T>
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<T>
org.eclipse.rdf4j.common.iteration.LookAheadIteration<T>
org.eclipse.rdf4j.federated.evaluation.concurrent.ParallelExecutorBase<T>
org.eclipse.rdf4j.federated.evaluation.union.UnionExecutorBase<T>
org.eclipse.rdf4j.federated.evaluation.union.WorkerUnionBase<T>
- All Implemented Interfaces:
 AutoCloseable, Runnable, Iterator<T>, CloseableIteration<T>, ParallelExecutor<T>
- Direct Known Subclasses:
 ControlledWorkerUnion, SynchronousWorkerUnion
Base class for worker unions providing convenience functions to add tasks.
- Author:
 - Andreas Schwarte
 - See Also:
 
- 
Field Summary
FieldsFields inherited from class ParallelExecutorBase
evaluationThread, executorId, finished, log, NEXT_EXECUTOR_ID, queryInfo, rightIter, rightQueue, strategyFields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddTask(ParallelTask<T> task) Add a generic parallel task.voidCalled byAbstractCloseableIteration.close()when it is called for the first time.Methods inherited from class UnionExecutorBase
getExecutorType, performExecution, unionMethods inherited from class ParallelExecutorBase
addResult, checkTimeout, done, getDisplayId, getId, getNextElement, getQueryInfo, isFinished, run, toss, toStringMethods inherited from class LookAheadIteration
hasNext, next, removeMethods inherited from class AbstractCloseableIteration
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CloseableIteration
streamMethods inherited from interface Iterator
forEachRemaining 
- 
Field Details
- 
tasks
 
 - 
 - 
Constructor Details
- 
WorkerUnionBase
 
 - 
 - 
Method Details
- 
addTask
Add a generic parallel task. Note that it is required that the task has this instance as its control.- Parameters:
 task-
 - 
handleClose
Description copied from class:AbstractCloseableIterationCalled byAbstractCloseableIteration.close()when it is called for the first time. This method is only called once on each iteration. By default, this method does nothing.- Overrides:
 handleClosein classParallelExecutorBase<T>- Throws:
 QueryEvaluationException
 
 -