|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.BaseProcessorPlan
com.metamatrix.query.processor.batch.BatchedUpdatePlan
public class BatchedUpdatePlan
Plan for execution for a batched update command. The plan executes the child plans of the individual commands in order.
Field Summary |
---|
Constructor Summary | |
---|---|
BatchedUpdatePlan(java.util.List childPlans,
int commandsInBatch)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a safe clone of the ProcessorPlan. |
void |
close()
Close the plan after processing. |
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
java.util.Map |
getDescriptionProperties()
Get a description as a set of properties of primitive types such as String, Integer, etc. |
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. |
void |
reset()
Reset a plan so that it can be processed again. |
java.lang.String |
toString()
|
Methods inherited from class com.metamatrix.query.processor.BaseProcessorPlan |
---|
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)
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 java.lang.Object clone()
ProcessorPlan
opened
or after it is closed
.
clone
in interface ProcessorPlan
clone
in class BaseProcessorPlan
Object.clone()
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlan
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referenceProcessorPlan.initialize(com.metamatrix.query.util.CommandContext, com.metamatrix.query.processor.ProcessorDataManager, com.metamatrix.common.buffer.BufferManager)
public java.util.List getOutputElements()
ProcessorPlan
ProcessorPlan.getOutputElements()
public void open() throws MetaMatrixComponentException, MetaMatrixProcessingException
ProcessorPlan
MetaMatrixComponentException
MetaMatrixProcessingException
ProcessorPlan.open()
public TupleBatch nextBatch() throws BlockedException, MetaMatrixComponentException, MetaMatrixProcessingException
ProcessorPlan
BlockedException
- indicating next batch is not available yet
MetaMatrixComponentException
- for non-business rule exception
MetaMatrixProcessingException
- for business rule exception, related
to user input or modelingProcessorPlan.nextBatch()
public void close() throws MetaMatrixComponentException
ProcessorPlan
MetaMatrixComponentException
ProcessorPlan.close()
public void reset()
ProcessorPlan
reset
in interface ProcessorPlan
reset
in class BaseProcessorPlan
ProcessorPlan.reset()
public java.util.Map getDescriptionProperties()
Describable
Describable.getDescriptionProperties()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List getUpdatePlans()
public java.util.Collection getChildPlans()
ProcessorPlan
ProcessorPlan.getChildPlans()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |