org.teiid.query.processor.proc
Class CreateCursorResultSetInstruction

java.lang.Object
  extended by org.teiid.query.processor.proc.ProgramInstruction
      extended by org.teiid.query.processor.proc.CreateCursorResultSetInstruction
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LoopInstruction

public class CreateCursorResultSetInstruction
extends ProgramInstruction


Field Summary
protected  ProcessorPlan plan
           
static java.lang.String RS_NAME
           
protected  java.lang.String rsName
           
 
Constructor Summary
CreateCursorResultSetInstruction(java.lang.String rsName, ProcessorPlan plan, boolean update)
           
 
Method Summary
 CreateCursorResultSetInstruction clone()
          Returns a deep clone
 ProcessorPlan getCommand()
           
 PlanNode getDescriptionProperties()
           
 void process(ProcedurePlan procEnv)
          Allow this instruction to do whatever processing it needs, and to in turn manipulate the running program.
 void setProcAssignments(java.util.Map<ElementSymbol,ElementSymbol> procAssignments)
           
 java.lang.String toString()
           
 
Methods inherited from class org.teiid.query.processor.proc.ProgramInstruction
getChildPlans
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RS_NAME

public static final java.lang.String RS_NAME
See Also:
Constant Field Values

rsName

protected java.lang.String rsName

plan

protected ProcessorPlan plan
Constructor Detail

CreateCursorResultSetInstruction

public CreateCursorResultSetInstruction(java.lang.String rsName,
                                        ProcessorPlan plan,
                                        boolean update)
Method Detail

setProcAssignments

public void setProcAssignments(java.util.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 simply 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.)

Specified by:
process in class ProgramInstruction
Throws:
BlockedException
TeiidComponentException
TeiidProcessingException

clone

public CreateCursorResultSetInstruction clone()
Returns a deep clone

Overrides:
clone in class ProgramInstruction
Returns:
shallow clone

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescriptionProperties

public PlanNode getDescriptionProperties()
Specified by:
getDescriptionProperties in class ProgramInstruction

getCommand

public ProcessorPlan getCommand()


Copyright © 2010. All Rights Reserved.