|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.processor.program.ProgramEnvironment
com.metamatrix.query.processor.proc.ProcedureEnvironment
public class ProcedureEnvironment
This class defines the environment that procedure language programs run in
and what ProgramInstructions can access during execution. This
environment holds references to the VariableContext, this variable
context is updated with new variables and their values upon execution of the
program instructions.
| Constructor Summary | |
|---|---|
ProcedureEnvironment()
Constructor for ProcedureEnvironment. |
|
| Method Summary | |
|---|---|
void |
executePlan(java.lang.Object command,
java.lang.String rsName)
Execute a ProcessorPlan and return the tupelSourceID for the results. |
CommandContext |
getContext()
|
java.util.List |
getCurrentRow(java.lang.String rsName)
|
VariableContext |
getCurrentVariableContext()
Get the current VariavleContext on this environment. |
ProcessorDataManager |
getDataManager()
|
TupleSource |
getFinalTupleSource()
|
java.util.List |
getOutputElements()
|
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(ProcessorPlan plan)
Initialize the environment with the procedure plan. |
boolean |
isUpdateProcedure()
|
boolean |
iterateCursor(java.lang.String rsName)
|
void |
pop()
|
void |
push(Program program)
|
void |
removeResults(java.lang.String rsName)
Remove the a data source from the environment. |
void |
reset()
|
boolean |
resultSetExists(java.lang.String rsName)
|
void |
setOutputElements(java.util.List outputElements)
|
void |
setTempTableStore(TempTableStore tempTableStore)
|
void |
setUpdateProcedure(boolean b)
|
| Methods inherited from class com.metamatrix.query.processor.program.ProgramEnvironment |
|---|
getProgramStack, peek |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcedureEnvironment()
| Method Detail |
|---|
public void initialize(ProcessorPlan plan)
initialize in class ProgramEnvironmentplan - XMLPlanpublic VariableContext getCurrentVariableContext()
Get the current VariavleContext on this environment.
The VariableContext is updated with variables and their values by
ProgramInstructions that are part of the ProcedurePlan that use
this environment.
VariariableContext.
public void executePlan(java.lang.Object command,
java.lang.String rsName)
throws MetaMatrixComponentException,
MetaMatrixProcessingException
ProgramEnvironmentExecute a ProcessorPlan and return the tupelSourceID for the results.
The TupleSourceID could be used by differrent ProgramInstructions that
use this environment to access results. The
executePlan in class ProgramEnvironmentcommand - The command to execute which is a ProcessPlanrsName - The name of the result set, which can be used later to obtain the tuple source.
MetaMatrixComponentException
MetaMatrixProcessingException
public void pop()
throws MetaMatrixComponentException
pop in class ProgramEnvironmentMetaMatrixComponentExceptionProgramEnvironment.pop()public void push(Program program)
push in class ProgramEnvironmentProgramEnvironment.push(com.metamatrix.query.processor.program.Program)
public void incrementProgramCounter()
throws MetaMatrixComponentException
incrementProgramCounter in class ProgramEnvironmentMetaMatrixComponentExceptionProgramEnvironment.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
ProgramEnvironment
removeResults in class ProgramEnvironmentrsName - The name of the result set.
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
MetaMatrixComponentExceptionpublic boolean resultSetExists(java.lang.String rsName)
public ProcessorDataManager getDataManager()
public CommandContext getContext()
public boolean isUpdateProcedure()
public void setUpdateProcedure(boolean b)
b - public TupleSource getFinalTupleSource()
public java.util.List getOutputElements()
public void setOutputElements(java.util.List outputElements)
public void reset()
public TempTableStore getTempTableStore()
public void setTempTableStore(TempTableStore tempTableStore)
tempTableStore - The tempTableStore to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||