public class LoopInstruction extends CreateCursorResultSetInstruction implements RepeatedInstruction
CreateCursorResultSetInstruction.Modeplan, 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, setUsesLocalTemppublic LoopInstruction(Program loopProgram, String rsName, ProcessorPlan plan, String label)
public String getLabel()
getLabel in interface Statement.Labeledpublic void setLabel(String label)
setLabel in interface Statement.Labeledpublic void process(ProcedurePlan procEnv) throws TeiidComponentException
ProgramInstructionincrement 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 CreateCursorResultSetInstructionTeiidComponentExceptionpublic LoopInstruction clone()
clone in class CreateCursorResultSetInstructionpublic String toString()
toString in class CreateCursorResultSetInstructionpublic PlanNode getDescriptionProperties()
getDescriptionProperties in class CreateCursorResultSetInstructionpublic boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException
testCondition in interface RepeatedInstructionTeiidComponentExceptionTeiidProcessingExceptionpublic Program getNestedProgram()
getNestedProgram in interface RepeatedInstructionRepeatedInstruction.getNestedProgram()public void postInstruction(ProcedurePlan procEnv) throws TeiidComponentException
postInstruction in interface RepeatedInstructionTeiidComponentExceptionpublic Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class CreateCursorResultSetInstructionCopyright © 2020. All rights reserved.