|
||||||||||
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.proc.ProcedurePlan
public class ProcedurePlan
Field Summary |
---|
Constructor Summary | |
---|---|
ProcedurePlan(ProcedureEnvironment env)
Constructor for ProcedurePlan. |
Method Summary | |
---|---|
protected void |
addBatchRow(java.util.List row)
|
java.lang.Object |
clone()
The plan is only clonable in the pre-execution stage, not the execution state (things like program state, result sets, etc). |
void |
close()
Close the plan after processing. |
void |
evaluateParams()
|
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
ProcessorDataManager |
getDataManager()
|
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. |
TupleSource |
getResults(TupleSourceID tupleID)
|
void |
initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
Initialize the plan with some required pieces of data for making queries. |
protected boolean |
isBatchFull()
|
TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception. |
void |
open()
Open the plan for processing. |
protected TupleBatch |
pullBatch()
|
void |
reset()
Reset a plan so that it can be processed again. |
void |
setMetadata(QueryMetadataInterface metadata)
|
void |
setParams(java.util.Map params)
|
protected void |
terminateBatches()
|
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 ProcedurePlan(ProcedureEnvironment env)
Method Detail |
---|
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlan
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referenceProcessorPlan#initialize(ProcessorDataManager, Object)
public void reset()
ProcessorPlan
reset
in interface ProcessorPlan
reset
in class BaseProcessorPlan
public ProcessorDataManager getDataManager()
public java.util.List getOutputElements()
public void open() throws MetaMatrixProcessingException, MetaMatrixComponentException
ProcessorPlan
MetaMatrixComponentException
MetaMatrixProcessingException
public TupleBatch nextBatch() throws MetaMatrixComponentException, MetaMatrixProcessingException, BlockedException
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 TupleSource getResults(TupleSourceID tupleID) throws MetaMatrixComponentException, BlockedException, MetaMatrixProcessingException
MetaMatrixComponentException
BlockedException
MetaMatrixProcessingException
public void close() throws MetaMatrixComponentException
ProcessorPlan
MetaMatrixComponentException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in interface ProcessorPlan
clone
in class BaseProcessorPlan
protected void addBatchRow(java.util.List row)
protected void terminateBatches()
protected boolean isBatchFull()
protected TupleBatch pullBatch()
public java.util.Map getDescriptionProperties()
Describable
public java.util.Collection getChildPlans()
ProcessorPlan
ProcessorPlan.getChildPlans()
public void setMetadata(QueryMetadataInterface metadata)
public void setParams(java.util.Map params)
public void evaluateParams() throws BlockedException, MetaMatrixComponentException, MetaMatrixProcessingException
BlockedException
MetaMatrixComponentException
MetaMatrixProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |