public class LoopInstruction extends CreateCursorResultSetInstruction implements RepeatedInstruction
CreateCursorResultSetInstruction.Mode
plan, rsName
Constructor and Description |
---|
LoopInstruction(Program loopProgram,
String rsName,
ProcessorPlan plan,
String label) |
Modifier and Type | Method and Description |
---|---|
LoopInstruction |
clone()
Returns a deep clone
|
PlanNode |
getDescriptionProperties() |
String |
getLabel() |
Program |
getNestedProgram() |
void |
postInstruction(ProcedurePlan procEnv) |
void |
process(ProcedurePlan procEnv)
Allow this instruction to do whatever processing it needs, and to
in turn manipulate the running program.
|
Boolean |
requiresTransaction(boolean transactionalReads) |
void |
setLabel(String label) |
boolean |
testCondition(ProcedurePlan procEnv) |
String |
toString() |
getCommand, getMode, setProcAssignments, setUsesLocalTemp
public LoopInstruction(Program loopProgram, String rsName, ProcessorPlan plan, String label)
public String getLabel()
getLabel
in interface Statement.Labeled
public void setLabel(String label)
setLabel
in interface Statement.Labeled
public void process(ProcedurePlan procEnv) throws TeiidComponentException
ProgramInstruction
increment
the program counter of the current program, but specialized
instructions may add sub programs to the stack or not increment the counter (so that they are executed again.)process
in class CreateCursorResultSetInstruction
TeiidComponentException
public LoopInstruction clone()
clone
in class CreateCursorResultSetInstruction
public String toString()
toString
in class CreateCursorResultSetInstruction
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class CreateCursorResultSetInstruction
public boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException
testCondition
in interface RepeatedInstruction
TeiidComponentException
TeiidProcessingException
public Program getNestedProgram()
getNestedProgram
in interface RepeatedInstruction
RepeatedInstruction.getNestedProgram()
public void postInstruction(ProcedurePlan procEnv) throws TeiidComponentException
postInstruction
in interface RepeatedInstruction
TeiidComponentException
public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction
in class CreateCursorResultSetInstruction
Copyright © 2019. All rights reserved.