|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.program.ProgramEnvironment
public abstract class ProgramEnvironment
This interface defines the environment that programs run in and what
ProgramInstruction
s can access during execution.
Constructor Summary | |
---|---|
ProgramEnvironment()
Default constructor |
Method Summary | |
---|---|
abstract void |
executePlan(java.lang.Object command,
java.lang.String rsName)
Execute a ProcessorPlan and return the tupelSourceID for the results. |
java.util.Stack |
getProgramStack()
Get the Stack of Program objects, with the currently running Program on top. |
void |
incrementProgramCounter()
|
abstract void |
initialize(ProcessorPlan plan)
Connect an XMLPlan to the environment |
Program |
peek()
|
void |
pop()
|
void |
push(Program program)
|
abstract void |
removeResults(java.lang.String rsName)
Remove the a data source from the environment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgramEnvironment()
Method Detail |
---|
public abstract void initialize(ProcessorPlan plan)
plan
- XMLPlanpublic java.util.Stack getProgramStack()
Programs
,
with the current Program on top.public Program peek()
public void pop() throws MetaMatrixComponentException
MetaMatrixComponentException
public void push(Program program)
public void incrementProgramCounter() throws MetaMatrixComponentException
MetaMatrixComponentException
public abstract void executePlan(java.lang.Object command, java.lang.String rsName) throws MetaMatrixComponentException, MetaMatrixProcessingException
Execute a ProcessorPlan and return the tupelSourceID for the results.
The TupleSourceID could be used by differrent ProgramInstruction
s that
use this environment to access results. The
command
- 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 abstract void removeResults(java.lang.String rsName) throws MetaMatrixComponentException
rsName
- The name of the result set.
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |