|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.processor.QueryProcessor
public class QueryProcessor
Nested Class Summary | |
---|---|
static class |
QueryProcessor.ExpiredTimeSliceException
|
static interface |
QueryProcessor.ProcessorFactory
|
Constructor Summary | |
---|---|
QueryProcessor(ProcessorPlan plan,
CommandContext context,
BufferManager bufferMgr,
ProcessorDataManager dataMgr)
Construct a processor with all necessary information to process. |
Method Summary | |
---|---|
void |
closeProcessing()
Close processing and clean everything up. |
BatchCollector |
createBatchCollector()
|
TupleBuffer |
createTupleBuffer()
|
java.util.List<java.lang.Exception> |
getAndClearWarnings()
|
CommandContext |
getContext()
|
java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
java.lang.Object |
getProcessID()
|
ProcessorPlan |
getProcessorPlan()
|
TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception. |
void |
requestCanceled()
Asynch shutdown of the QueryProcessor, which may trigger exceptions in the processing thread |
void |
setNonBlocking(boolean nonBlocking)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryProcessor(ProcessorPlan plan, CommandContext context, BufferManager bufferMgr, ProcessorDataManager dataMgr) throws TeiidComponentException
plan
- The plan to processcontext
- The context that this plan is being processed inbufferMgr
- The buffer manager that provides access to tuple sourcesdataMgr
- The data manager that provides access to get data
TeiidComponentException
Method Detail |
---|
public CommandContext getContext()
public java.lang.Object getProcessID()
public ProcessorPlan getProcessorPlan()
public TupleBatch nextBatch() throws BlockedException, TeiidProcessingException, TeiidComponentException
BatchCollector.BatchProducer
nextBatch
in interface BatchCollector.BatchProducer
BlockedException
- indicating next batch is not available yet
TeiidProcessingException
- for business rule exception, related
to user input or modeling
TeiidComponentException
- for non-business rule exceptionpublic void closeProcessing()
public java.util.List getOutputElements()
BatchCollector.BatchProducer
getOutputElements
in interface BatchCollector.BatchProducer
public java.util.List<java.lang.Exception> getAndClearWarnings()
public void requestCanceled()
public TupleBuffer createTupleBuffer() throws TeiidComponentException
TeiidComponentException
public BatchCollector createBatchCollector() throws TeiidComponentException
TeiidComponentException
public void setNonBlocking(boolean nonBlocking)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |