|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.processor.ProcessorPlan
org.teiid.query.processor.relational.RelationalPlan
public class RelationalPlan
Constructor Summary | |
---|---|
RelationalPlan(RelationalNode node)
Constructor for RelationalPlan. |
Method Summary | |
---|---|
RelationalPlan |
clone()
Return a safe clone of the ProcessorPlan. |
void |
close()
Close the plan after processing. |
PlanNode |
getDescriptionProperties()
|
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. |
RelationalNode |
getRootNode()
|
boolean |
hasFinalBuffer()
|
void |
initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
Initialize the plan with some required pieces of data for making queries. |
TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception. |
void |
open()
Open the plan for processing. |
boolean |
requiresTransaction(boolean transactionalReads)
|
void |
reset()
Reset a plan so that it can be processed again. |
void |
setMultisourceUpdate(boolean multisourceUpdate)
|
void |
setOutputElements(java.util.List outputCols)
|
void |
setRootNode(RelationalNode root)
|
void |
setWith(java.util.List<WithQueryCommand> with)
|
java.lang.String |
toString()
|
Methods inherited from class org.teiid.query.processor.ProcessorPlan |
---|
addWarning, getAndClearWarnings, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RelationalPlan(RelationalNode node)
Method Detail |
---|
public RelationalNode getRootNode()
public void setRootNode(RelationalNode root)
public void setWith(java.util.List<WithQueryCommand> with)
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlan
initialize
in class ProcessorPlan
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referenceProcessorPlan#connectDataManager(ProcessorDataManager)
public java.util.List getOutputElements()
getOutputElements
in interface BatchCollector.BatchProducer
getOutputElements
in class ProcessorPlan
public void open() throws TeiidComponentException, TeiidProcessingException
ProcessorPlan
open
in class ProcessorPlan
TeiidComponentException
TeiidProcessingException
public TupleBatch nextBatch() throws BlockedException, TeiidComponentException, TeiidProcessingException
ProcessorPlan
nextBatch
in interface BatchCollector.BatchProducer
nextBatch
in class ProcessorPlan
BlockedException
- indicating next batch is not available yet
TeiidComponentException
- for non-business rule exception
TeiidProcessingException
- for business rule exception, related
to user input or modelingProcessorPlan.nextBatch()
public void close() throws TeiidComponentException
ProcessorPlan
close
in class ProcessorPlan
TeiidComponentException
public void reset()
ProcessorPlan
reset
in class ProcessorPlan
ProcessorPlan.reset()
public java.lang.String toString()
toString
in class java.lang.Object
public RelationalPlan clone()
ProcessorPlan
opened
or after it is closed
.
clone
in class ProcessorPlan
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class ProcessorPlan
public void setOutputElements(java.util.List outputCols)
outputCols
- The outputCols to set.public void setMultisourceUpdate(boolean multisourceUpdate)
public boolean requiresTransaction(boolean transactionalReads)
requiresTransaction
in class ProcessorPlan
public TupleBuffer getFinalBuffer() throws BlockedException, TeiidComponentException, TeiidProcessingException
ProcessorPlan
getFinalBuffer
in interface BatchCollector.BatchProducer
getFinalBuffer
in class ProcessorPlan
BlockedException
TeiidComponentException
TeiidProcessingException
public boolean hasFinalBuffer()
hasFinalBuffer
in interface BatchCollector.BatchProducer
hasFinalBuffer
in class ProcessorPlan
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |