|
||||||||||
| 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
Driver for plan processing.
| 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()
|
java.util.List<java.lang.Exception> |
getAndClearWarnings()
|
BufferManager |
getBufferManager()
|
CommandContext |
getContext()
|
TupleBuffer |
getFinalBuffer()
return the final tuple buffer or null if not available |
java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
java.lang.Object |
getProcessID()
|
ProcessorPlan |
getProcessorPlan()
|
boolean |
hasFinalBuffer()
|
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.BatchProducerBlockedException - 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.BatchProducerpublic java.util.List<java.lang.Exception> getAndClearWarnings()
public void requestCanceled()
public BatchCollector createBatchCollector()
throws TeiidComponentException
TeiidComponentExceptionpublic void setNonBlocking(boolean nonBlocking)
public TupleBuffer getFinalBuffer()
throws BlockedException,
TeiidComponentException,
TeiidProcessingException
BatchCollector.BatchProducer
getFinalBuffer in interface BatchCollector.BatchProducerBlockedException
TeiidComponentException
TeiidProcessingExceptionpublic boolean hasFinalBuffer()
hasFinalBuffer in interface BatchCollector.BatchProducerpublic BufferManager getBufferManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||