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)
           
 
Method Summary
 CreateCursorResultSetInstruction clone()
          Returns a deep clone
 ProcessorPlan getCommand()
           
 PlanNode getDescriptionProperties()
           
 void process(ProcedurePlan procEnv)
          If the result set named rsName does not exist yet in the ProcedurePlan, then this instruction will define that result set.
 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)
Method Detail

process

public void process(ProcedurePlan procEnv)
             throws BlockedException,
                    TeiidComponentException,
                    TeiidProcessingException
If the result set named rsName does not exist yet in the ProcedurePlan, then this instruction will define that result set. It will then throw a BlockedException if this result set is selecting from other than temp groups (because those results will be delivered asynchronously). IF the result set named rsName does already exist, this instruction will just increment the program counter and do nothing else.

Specified by:
process in class ProgramInstruction
Throws:
BlockedException - if this result set is not selecting from only temp groups
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.