|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.program.ProgramInstruction
com.metamatrix.query.processor.proc.AbstractAssignmentInstruction
public abstract class AbstractAssignmentInstruction
This instruction updates the current variable context with a value for the Variable defined using a DeclareInstruction, the variable value is obtained by either processing a expression or a command(stored as a processplan). The Processing of the command is expected to result in 1 column, 1 row tuple.
Field Summary |
---|
Constructor Summary | |
---|---|
AbstractAssignmentInstruction()
|
Method Summary | |
---|---|
protected void |
cloneState(AbstractAssignmentInstruction clone)
|
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. |
protected abstract void |
getDescriptionProperties(java.util.Map props)
|
Expression |
getExpression()
|
protected ProcessorPlan |
getProcessorPlan()
|
ProcessorPlan |
getProcessPlan()
|
ElementSymbol |
getVariable()
|
void |
process(ProcedurePlan procEnv)
Updates the current variable context with a value for the Variable defined using a DeclareInstruction, the variable value is obtained by either processing a expression or a command(stored as a processplan). |
protected abstract void |
processValue(java.lang.Object value,
VariableContext varContext)
|
void |
setExpression(Expression expression)
|
void |
setProcessPlan(ProcessorPlan processPlan)
|
void |
setVariable(ElementSymbol variable)
|
Methods inherited from class com.metamatrix.query.processor.program.ProgramInstruction |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAssignmentInstruction()
Method Detail |
---|
public void process(ProcedurePlan procEnv) throws BlockedException, MetaMatrixComponentException, MetaMatrixProcessingException
Updates the current variable context with a value for the Variable defined using a DeclareInstruction, the variable value is obtained by either processing a expression or a command(stored as a processplan). The Processing of the command is expected to result in 1 column, 1 row tuple, if more than a row is returned an exception is thrown. Also updates the program counter.
process
in class ProgramInstruction
BlockedException
MetaMatrixComponentException
- if error processing command or expression on this instruction
MetaMatrixProcessingException
protected abstract void processValue(java.lang.Object value, VariableContext varContext) throws MetaMatrixComponentException, MetaMatrixProcessingException
MetaMatrixComponentException
MetaMatrixProcessingException
protected ProcessorPlan getProcessorPlan()
protected void cloneState(AbstractAssignmentInstruction clone)
public java.util.Map getDescriptionProperties()
Describable
getDescriptionProperties
in interface Describable
getDescriptionProperties
in class ProgramInstruction
protected abstract void getDescriptionProperties(java.util.Map props)
public java.util.Collection getChildPlans()
ProgramInstruction
getChildPlans
in class ProgramInstruction
ProgramInstruction.getChildPlans()
public Expression getExpression()
public void setExpression(Expression expression)
expression
- The expression to set.public ProcessorPlan getProcessPlan()
public void setProcessPlan(ProcessorPlan processPlan)
processPlan
- The processPlan to set.public ElementSymbol getVariable()
public void setVariable(ElementSymbol variable)
variable
- The variable to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |