|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.processor.ProcessorPlan
public abstract class ProcessorPlan
This class represents a processor plan. It is generic in that it abstracts the interface to the plan by the processor, meaning that the actual implementation of the plan or the types of processing done by the plan is not important to the processor.
All the implementations of this interface need to implement clone()
method. The plan is only clonable in the pre or post-processing stage, not
during the processing state (things like program state, result sets, etc).
It's only safe to clone in between query processings. In other words, it's
only safe to call clone() before the call to open() or after
the call to close().
| Constructor Summary | |
|---|---|
ProcessorPlan()
|
|
| Method Summary | |
|---|---|
protected void |
addWarning(TeiidException warning)
|
abstract ProcessorPlan |
clone()
Return a safe clone of the ProcessorPlan. |
abstract void |
close()
Close the plan after processing. |
java.util.List<java.lang.Exception> |
getAndClearWarnings()
Get all warnings found while processing this plan. |
CommandContext |
getContext()
Get the processor context, which can be modified. |
PlanNode |
getDescriptionProperties()
|
abstract java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
abstract void |
initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
Initialize the plan with some required pieces of data for making queries. |
abstract TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception. |
abstract void |
open()
Open the plan for processing. |
boolean |
requiresTransaction(boolean transactionalReads)
|
void |
reset()
Reset a plan so that it can be processed again. |
void |
setContext(CommandContext context)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessorPlan()
| Method Detail |
|---|
public abstract void initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
context - Process execution contextdataMgr - Data manager referencebufferMgr - Buffer manager referencepublic java.util.List<java.lang.Exception> getAndClearWarnings()
protected void addWarning(TeiidException warning)
public void reset()
public abstract java.util.List getOutputElements()
getOutputElements in interface BatchCollector.BatchProducerpublic CommandContext getContext()
public void setContext(CommandContext context)
public abstract void open()
throws TeiidComponentException,
TeiidProcessingException
TeiidComponentException
TeiidProcessingException
public abstract TupleBatch nextBatch()
throws BlockedException,
TeiidComponentException,
TeiidProcessingException
nextBatch in interface BatchCollector.BatchProducerBlockedException - indicating next batch is not available yet
TeiidComponentException - for non-business rule exception
TeiidProcessingException - for business rule exception, related
to user input or modeling
public abstract void close()
throws TeiidComponentException
TeiidComponentExceptionpublic abstract ProcessorPlan clone()
opened or after it is closed.
clone in class java.lang.Objectpublic boolean requiresTransaction(boolean transactionalReads)
public PlanNode getDescriptionProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||