Class SourceSelection.ParallelSourceSelectionTask
java.lang.Object
org.eclipse.rdf4j.federated.evaluation.concurrent.ParallelTaskBase<BindingSet>
org.eclipse.rdf4j.federated.optimizer.SourceSelection.ParallelSourceSelectionTask
- All Implemented Interfaces:
ParallelTask<BindingSet>
- Direct Known Subclasses:
SourceSelection.ParallelCheckTask, SourceSelection.ParallelGroupedCheckTask
- Enclosing class:
SourceSelection
protected abstract static class SourceSelection.ParallelSourceSelectionTask
extends ParallelTaskBase<BindingSet>
- Author:
- Andreas Schwarte
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SourceSelection.SourceSelectionExecutorWithLatchprotected final Endpointprotected final QueryInfoFields inherited from class ParallelTaskBase
scheduledFuture -
Constructor Summary
ConstructorsConstructorDescriptionParallelSourceSelectionTask(Endpoint endpoint, QueryInfo queryInfo, SourceSelection.SourceSelectionExecutorWithLatch control) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Optional implementation to cancel this task on a best effort basisreturn the controlling instance, e.g. in most cases the instance of a thread.Methods inherited from class ParallelTaskBase
close, performTask, performTaskInternal, setScheduledFuture, toStringModifier and TypeMethodDescriptionvoidclose()Optional implementation to close this task on a best effort basis.protected abstract CloseableIteration<BindingSet> voidsetScheduledFuture(Future<?> future) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ParallelTask
getQueryInfo
-
Field Details
-
endpoint
-
control
-
queryInfo
-
-
Constructor Details
-
ParallelSourceSelectionTask
public ParallelSourceSelectionTask(Endpoint endpoint, QueryInfo queryInfo, SourceSelection.SourceSelectionExecutorWithLatch control)
-
-
Method Details
-
getControl
Description copied from interface:ParallelTaskreturn the controlling instance, e.g. in most cases the instance of a thread. Shared variables are used to inform the thread about new events.- Returns:
- the control executor
-
cancel
public void cancel()Description copied from interface:ParallelTaskOptional implementation to cancel this task on a best effort basis- Specified by:
cancelin interfaceParallelTask<BindingSet>- Overrides:
cancelin classParallelTaskBase<BindingSet>
-