public class AssignmentInstruction extends ProgramInstruction
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.
| Constructor and Description |
|---|
AssignmentInstruction() |
| Modifier and Type | Method and Description |
|---|---|
AssignmentInstruction |
clone()
Override Object.clone() to make the method public.
|
PlanNode |
getDescriptionProperties() |
Expression |
getExpression() |
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).
|
Boolean |
requiresTransaction(boolean transactionalReads) |
void |
setExpression(Expression expression) |
void |
setVariable(ElementSymbol variable) |
String |
toString() |
public void process(ProcedurePlan procEnv) throws BlockedException, TeiidComponentException, TeiidProcessingException
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 ProgramInstructionBlockedExceptionTeiidComponentException - if error processing command or expression on this instructionTeiidProcessingExceptionpublic PlanNode getDescriptionProperties()
getDescriptionProperties in class ProgramInstructionpublic Expression getExpression()
public void setExpression(Expression expression)
expression - The expression to set.public ElementSymbol getVariable()
public void setVariable(ElementSymbol variable)
variable - The variable to set.public AssignmentInstruction clone()
ProgramInstructionclone in class ProgramInstructionProgramInstruction.clone()public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProgramInstructionCopyright © 2019. All rights reserved.