Package org.teiid.query.processor.proc
Class CreateCursorResultSetInstruction
- java.lang.Object
-
- org.teiid.query.processor.proc.ProgramInstruction
-
- org.teiid.query.processor.proc.CreateCursorResultSetInstruction
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
LoopInstruction
public class CreateCursorResultSetInstruction extends ProgramInstruction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateCursorResultSetInstruction.Mode
-
Field Summary
Fields Modifier and Type Field Description protected ProcessorPlan
plan
protected String
rsName
-
Constructor Summary
Constructors Constructor Description CreateCursorResultSetInstruction(String rsName, ProcessorPlan plan, CreateCursorResultSetInstruction.Mode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCursorResultSetInstruction
clone()
Returns a deep cloneProcessorPlan
getCommand()
PlanNode
getDescriptionProperties()
CreateCursorResultSetInstruction.Mode
getMode()
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
setProcAssignments(Map<ElementSymbol,ElementSymbol> procAssignments)
void
setUsesLocalTemp(boolean b)
String
toString()
-
-
-
Field Detail
-
rsName
protected String rsName
-
plan
protected ProcessorPlan plan
-
-
Constructor Detail
-
CreateCursorResultSetInstruction
public CreateCursorResultSetInstruction(String rsName, ProcessorPlan plan, CreateCursorResultSetInstruction.Mode mode)
-
-
Method Detail
-
setProcAssignments
public void setProcAssignments(Map<ElementSymbol,ElementSymbol> procAssignments)
-
process
public void process(ProcedurePlan procEnv) throws BlockedException, TeiidComponentException, TeiidProcessingException
Description copied from class:ProgramInstruction
Allow this instruction to do whatever processing it needs, and to in turn manipulate the running program. A typical instruction should simplyincrement
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.)- Specified by:
process
in classProgramInstruction
- Throws:
BlockedException
TeiidComponentException
TeiidProcessingException
-
clone
public CreateCursorResultSetInstruction clone()
Returns a deep clone- Overrides:
clone
in classProgramInstruction
- Returns:
- shallow clone
-
getDescriptionProperties
public PlanNode getDescriptionProperties()
- Specified by:
getDescriptionProperties
in classProgramInstruction
-
getCommand
public ProcessorPlan getCommand()
-
getMode
public CreateCursorResultSetInstruction.Mode getMode()
-
setUsesLocalTemp
public void setUsesLocalTemp(boolean b)
-
requiresTransaction
public Boolean requiresTransaction(boolean transactionalReads)
- Overrides:
requiresTransaction
in classProgramInstruction
-
-