|
||||||||||
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(Program originalProgram)
Constructor for ProcedurePlan. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a safe clone of the ProcessorPlan. |
void |
close()
Close the plan after processing. |
void |
executePlan(ProcessorPlan command,
java.lang.String rsName)
|
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
CommandContext |
getContext()
Get the processor context, which can be modified. |
java.util.List |
getCurrentRow(java.lang.String rsName)
|
VariableContext |
getCurrentVariableContext()
Get the current VariavleContext on this environment. |
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. |
java.util.List |
getSchema(java.lang.String rsName)
Get the schema from the tuple source that represents the columns in a result set |
java.util.Set |
getTempContext()
|
TempTableStore |
getTempTableStore()
|
void |
incrementProgramCounter()
|
void |
initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
Initialize the plan with some required pieces of data for making queries. |
protected boolean |
isBatchFull()
|
boolean |
isUpdateProcedure()
|
boolean |
iterateCursor(java.lang.String rsName)
|
TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception. |
void |
open()
Open the plan for processing. |
Program |
peek()
|
void |
pop()
|
protected TupleBatch |
pullBatch()
|
void |
push(Program program)
|
void |
removeResults(java.lang.String rsName)
|
void |
reset()
Reset a plan so that it can be processed again. |
boolean |
resultSetExists(java.lang.String rsName)
|
void |
setMetadata(QueryMetadataInterface metadata)
|
void |
setOutputElements(java.util.List outputElements)
|
void |
setParams(java.util.Map<ElementSymbol,Expression> params)
|
void |
setUpdateProcedure(boolean b)
|
protected void |
terminateBatches()
|
java.lang.String |
toString()
|
Methods inherited from class com.metamatrix.query.processor.BaseProcessorPlan |
---|
addWarning, getAndClearWarnings, setContext |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcedurePlan(Program originalProgram)
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 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 void close() throws MetaMatrixComponentException
ProcessorPlan
MetaMatrixComponentException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
ProcessorPlan
opened
or after it is closed
.
clone
in interface ProcessorPlan
clone
in class BaseProcessorPlan
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<ElementSymbol,Expression> params)
public VariableContext getCurrentVariableContext()
Get the current VariavleContext
on this environment.
The VariableContext is updated with variables and their values by
ProgramInstruction
s that are part of the ProcedurePlan that use
this environment.
VariariableContext
.public void executePlan(ProcessorPlan command, java.lang.String rsName) throws MetaMatrixComponentException, MetaMatrixProcessingException
MetaMatrixComponentException
MetaMatrixProcessingException
public void pop() throws MetaMatrixComponentException
MetaMatrixComponentException
com.metamatrix.query.processor.program.ProgramEnvironment#pop()
public void push(Program program)
com.metamatrix.query.processor.program.ProgramEnvironment#push(com.metamatrix.query.processor.program.Program)
public void incrementProgramCounter() throws MetaMatrixComponentException
MetaMatrixComponentException
com.metamatrix.query.processor.program.ProgramEnvironment#incrementProgramCounter()
public java.util.Set getTempContext()
public java.util.List getCurrentRow(java.lang.String rsName)
public boolean iterateCursor(java.lang.String rsName) throws MetaMatrixComponentException, MetaMatrixProcessingException
MetaMatrixComponentException
MetaMatrixProcessingException
public void removeResults(java.lang.String rsName) throws MetaMatrixComponentException
MetaMatrixComponentException
public java.util.List getSchema(java.lang.String rsName) throws MetaMatrixComponentException
rsName
- the ResultSet name (not a temp group)
QueryProcessorException
- if the list of elements is null
MetaMatrixComponentException
public boolean resultSetExists(java.lang.String rsName)
public CommandContext getContext()
ProcessorPlan
getContext
in interface ProcessorPlan
getContext
in class BaseProcessorPlan
public boolean isUpdateProcedure()
public void setUpdateProcedure(boolean b)
b
- public java.util.List getOutputElements()
ProcessorPlan
public void setOutputElements(java.util.List outputElements)
public TempTableStore getTempTableStore()
public Program peek()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |