public class RelationalPlan extends ProcessorPlan
| Constructor and Description |
|---|
RelationalPlan(RelationalNode node)
Constructor for RelationalPlan.
|
| Modifier and Type | Method and Description |
|---|---|
RelationalPlan |
clone()
Return a safe clone of the ProcessorPlan.
|
void |
close()
Close the plan after processing.
|
TupleBuffer |
getBuffer(int maxRows)
return the final tuple buffer or null if not available
|
PlanNode |
getDescriptionProperties() |
List<? extends Expression> |
getOutputElements()
Get list of resolved elements describing output columns for this plan.
|
RelationalNode |
getRootNode() |
boolean |
hasBuffer()
Return true if the plan provides a final buffer via getBuffer
|
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 |
setOutputElements(List<? extends Expression> outputCols) |
void |
setRootNode(RelationalNode root) |
void |
setWith(List<WithQueryCommand> with) |
String |
toString() |
addWarning, getContext, setContextpublic RelationalPlan(RelationalNode node)
public RelationalNode getRootNode()
public void setRootNode(RelationalNode root)
public void setWith(List<WithQueryCommand> with)
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlaninitialize in class ProcessorPlancontext - Process execution contextdataMgr - Data manager referencebufferMgr - Buffer manager referenceProcessorPlan#connectDataManager(ProcessorDataManager)public List<? extends Expression> getOutputElements()
getOutputElements in interface BatchCollector.BatchProducergetOutputElements in class ProcessorPlanpublic void open()
throws TeiidComponentException,
TeiidProcessingException
ProcessorPlanopen in class ProcessorPlanTeiidComponentExceptionTeiidProcessingExceptionpublic TupleBatch nextBatch() throws BlockedException, TeiidComponentException, TeiidProcessingException
ProcessorPlannextBatch in interface BatchCollector.BatchProducernextBatch in class ProcessorPlanBlockedException - indicating next batch is not available yetTeiidComponentException - for non-business rule exceptionTeiidProcessingException - for business rule exception, related
to user input or modelingProcessorPlan.nextBatch()public void close()
throws TeiidComponentException
ProcessorPlanclose in interface BatchCollector.BatchProducerclose in class ProcessorPlanTeiidComponentExceptionpublic void reset()
ProcessorPlanreset in class ProcessorPlanProcessorPlan.reset()public RelationalPlan clone()
ProcessorPlanopened or after it is closed.clone in class ProcessorPlanpublic PlanNode getDescriptionProperties()
getDescriptionProperties in class ProcessorPlanpublic void setOutputElements(List<? extends Expression> outputCols)
outputCols - The outputCols to set.public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProcessorPlanpublic TupleBuffer getBuffer(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException
ProcessorPlangetBuffer in interface BatchCollector.BatchProducergetBuffer in class ProcessorPlanBlockedExceptionTeiidComponentExceptionTeiidProcessingExceptionpublic boolean hasBuffer()
ProcessorPlanhasBuffer in interface BatchCollector.BatchProducerhasBuffer in class ProcessorPlanCopyright © 2018 JBoss by Red Hat. All rights reserved.