public class BatchedUpdatePlan extends ProcessorPlan
| Constructor and Description |
|---|
BatchedUpdatePlan(List<? extends ProcessorPlan> childPlans,
int commandsInBatch,
List<VariableContext> contexts,
boolean singleResult) |
| Modifier and Type | Method and Description |
|---|---|
BatchedUpdatePlan |
clone()
Return a safe clone of the ProcessorPlan.
|
void |
close()
Close the plan after processing.
|
PlanNode |
getDescriptionProperties() |
List |
getOutputElements()
Get list of resolved elements describing output columns for this plan.
|
List |
getUpdatePlans()
Returns the child plans for this batch.
|
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 |
setSingleResult(boolean singleResult) |
String |
toString() |
addWarning, getBuffer, getContext, hasBuffer, setContextpublic BatchedUpdatePlan(List<? extends ProcessorPlan> childPlans, int commandsInBatch, List<VariableContext> contexts, boolean singleResult)
childPlans - the child update plans for this batchcommandsInBatch - The total number of commands in this batch. This does not always equal the number of plans if some
commands have been batched together.singleResult - indicates only a single update count is expected - non-single result plans are required to be top levelpublic BatchedUpdatePlan clone()
ProcessorPlanopened or after it is closed.clone in class ProcessorPlanObject.clone()public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlaninitialize in class ProcessorPlancontext - Process execution contextdataMgr - Data manager referencebufferMgr - Buffer manager referenceProcessorPlan.initialize(org.teiid.query.util.CommandContext, org.teiid.query.processor.ProcessorDataManager, org.teiid.common.buffer.BufferManager)public List getOutputElements()
ProcessorPlangetOutputElements in interface BatchCollector.BatchProducergetOutputElements in class ProcessorPlanProcessorPlan.getOutputElements()public void open()
throws TeiidComponentException,
TeiidProcessingException
ProcessorPlanopen in class ProcessorPlanTeiidComponentExceptionTeiidProcessingExceptionProcessorPlan.open()public 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 ProcessorPlanTeiidComponentExceptionProcessorPlan.close()public void reset()
ProcessorPlanreset in class ProcessorPlanProcessorPlan.reset()public PlanNode getDescriptionProperties()
getDescriptionProperties in class ProcessorPlanpublic List getUpdatePlans()
public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProcessorPlanpublic void setSingleResult(boolean singleResult)
Copyright © 2020. All rights reserved.