public class QueryTask extends AbstractStepTask
action, indexManager, joinNexusFactory, log, step| Constructor and Description |
|---|
QueryTask(IStep step,
IJoinNexusFactory joinNexusFactory,
IBlockingBuffer<ISolution[]> buffer,
IIndexManager indexManager,
DataService dataService) |
| Modifier and Type | Method and Description |
|---|---|
RuleStats |
call()
Run the task (invoked once we are in the target execution context).
|
protected List<Callable<RuleStats>> |
newQueryTasks(IStep step,
IJoinNexus joinNexus,
IBlockingBuffer<ISolution[]> buffer)
Builds a set of tasks for the program.
|
protected RuleStats |
runTasks(IJoinNexus joinNexus,
List<Callable<RuleStats>> tasks)
Run the task(s) and wait for them to complete.
|
clone, getIndexNames, getMutationBuffers, getReadRelations, getWriteRelationNames, getWriteRelations, runOne, runParallel, runSequential, submit, toStringgetDataService, isDataService, setDataServicegetFederation, setFederationequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFederation, setFederationpublic QueryTask(IStep step, IJoinNexusFactory joinNexusFactory, IBlockingBuffer<ISolution[]> buffer, IIndexManager indexManager, DataService dataService)
buffer - The IBlockingBuffer on which the ISolutions
will be written.public RuleStats call() throws Exception
Exceptionprotected RuleStats runTasks(IJoinNexus joinNexus, List<Callable<RuleStats>> tasks) throws InterruptedException, ExecutionException
RuleStatsExecutionExceptionInterruptedExceptionprotected List<Callable<RuleStats>> newQueryTasks(IStep step, IJoinNexus joinNexus, IBlockingBuffer<ISolution[]> buffer)
UnsynchronizedArrayBuffer. Each task will flush that
UnsynchronizedArrayBuffer onto the given IBuffer when it
completes.step - The IStep.joinNexus - The IJoinNexus.buffer - The thread-safe buffer onto which the individual tasks emit
chunks.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.