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 classCreateCursorResultSetInstruction.Mode
-
Field Summary
Fields Modifier and Type Field Description protected ProcessorPlanplanprotected StringrsName
-
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 CreateCursorResultSetInstructionclone()Returns a deep cloneProcessorPlangetCommand()PlanNodegetDescriptionProperties()CreateCursorResultSetInstruction.ModegetMode()voidprocess(ProcedurePlan procEnv)Allow this instruction to do whatever processing it needs, and to in turn manipulate the running program.BooleanrequiresTransaction(boolean transactionalReads)voidsetProcAssignments(Map<ElementSymbol,ElementSymbol> procAssignments)voidsetUsesLocalTemp(boolean b)StringtoString()
-
-
-
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:ProgramInstructionAllow this instruction to do whatever processing it needs, and to in turn manipulate the running program. A typical instruction should simplyincrementthe 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:
processin classProgramInstruction- Throws:
BlockedExceptionTeiidComponentExceptionTeiidProcessingException
-
clone
public CreateCursorResultSetInstruction clone()
Returns a deep clone- Overrides:
clonein classProgramInstruction- Returns:
- shallow clone
-
getDescriptionProperties
public PlanNode getDescriptionProperties()
- Specified by:
getDescriptionPropertiesin classProgramInstruction
-
getCommand
public ProcessorPlan getCommand()
-
getMode
public CreateCursorResultSetInstruction.Mode getMode()
-
setUsesLocalTemp
public void setUsesLocalTemp(boolean b)
-
requiresTransaction
public Boolean requiresTransaction(boolean transactionalReads)
- Overrides:
requiresTransactionin classProgramInstruction
-
-