|
||||||||||
| 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.BatchedUpdatePlan
public class BatchedUpdatePlan
Plan for execution for a batched update command. The plan executes the child plans of the individual commands in order. If variableContexts are provided, then this is a bulk update where all plans are the same object.
| Constructor Summary | |
|---|---|
BatchedUpdatePlan(java.util.List childPlans,
int commandsInBatch,
java.util.List<VariableContext> contexts)
|
|
| Method Summary | |
|---|---|
BatchedUpdatePlan |
clone()
Return a safe clone of the ProcessorPlan. |
void |
close()
Close the plan after processing. |
PlanNode |
getDescriptionProperties()
|
java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
java.util.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. |
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 BatchedUpdatePlan(java.util.List childPlans,
int commandsInBatch,
java.util.List<VariableContext> contexts)
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.| Method Detail |
|---|
public BatchedUpdatePlan clone()
ProcessorPlanopened or after it is closed.
clone in class ProcessorPlanObject.clone()
public void initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
ProcessorPlan
initialize 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 java.util.List getOutputElements()
ProcessorPlan
getOutputElements in interface BatchCollector.BatchProducergetOutputElements in class ProcessorPlanProcessorPlan.getOutputElements()
public void open()
throws TeiidComponentException,
TeiidProcessingException
ProcessorPlan
open in class ProcessorPlanTeiidComponentException
TeiidProcessingExceptionProcessorPlan.open()
public TupleBatch nextBatch()
throws BlockedException,
TeiidComponentException,
TeiidProcessingException
ProcessorPlan
nextBatch in interface BatchCollector.BatchProducernextBatch in class ProcessorPlanBlockedException - 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 ProcessorPlanTeiidComponentExceptionProcessorPlan.close()public void reset()
ProcessorPlan
reset in class ProcessorPlanProcessorPlan.reset()public PlanNode getDescriptionProperties()
getDescriptionProperties in class ProcessorPlanpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List getUpdatePlans()
public boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProcessorPlan
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||