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, toString
getDataService, isDataService, setDataService
getFederation, setFederation
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFederation, setFederation
public QueryTask(IStep step, IJoinNexusFactory joinNexusFactory, IBlockingBuffer<ISolution[]> buffer, IIndexManager indexManager, DataService dataService)
buffer
- The IBlockingBuffer
on which the ISolution
s
will be written.public RuleStats call() throws Exception
Exception
protected RuleStats runTasks(IJoinNexus joinNexus, List<Callable<RuleStats>> tasks) throws InterruptedException, ExecutionException
RuleStats
ExecutionException
InterruptedException
protected 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.