org.teiid.query.processor.relational
Class InsertPlanExecutionNode

java.lang.Object
  extended by org.teiid.query.processor.relational.RelationalNode
      extended by org.teiid.query.processor.relational.PlanExecutionNode
          extended by org.teiid.query.processor.relational.InsertPlanExecutionNode
All Implemented Interfaces:
java.lang.Cloneable, BatchCollector.BatchProducer

public class InsertPlanExecutionNode
extends PlanExecutionNode


Constructor Summary
InsertPlanExecutionNode(int nodeID, QueryMetadataInterface metadata)
           
 
Method Summary
protected  void addBatchRow(java.util.List row)
           
 java.lang.Object clone()
          All the implementation of Cloneable interface need to implement clone() method.
 void closeDirect()
           
protected  void copy(InsertPlanExecutionNode source, InsertPlanExecutionNode target)
           
protected  boolean hasNextCommand()
           
protected  boolean openPlanImmediately()
           
protected  boolean prepareNextCommand()
           
protected  TupleBatch pullBatch()
           
 void reset()
           
 void setReferences(java.util.List<Reference> references)
           
 
Methods inherited from class org.teiid.query.processor.relational.PlanExecutionNode
copy, getDescriptionProperties, getNodeString, getProcessorPlan, nextBatchDirect, open, setProcessorPlan
 
Methods inherited from class org.teiid.query.processor.relational.RelationalNode
addChild, close, copy, createLookupMap, getBatchSize, getBufferManager, getChildren, getClassName, getConnectionID, getContext, getDataManager, getElements, getEstimateNodeCardinality, getID, getNodeStatistics, getOutputElements, getParent, getProjectionIndexes, hasPendingRows, initialize, isBatchFull, isClosed, isLastBatch, nextBatch, nodeToString, projectTuple, setContext, setElements, setEstimateDepAccessCardinality, setEstimateDepJoinCost, setEstimateJoinCost, setEstimateNodeCardinality, setEstimateNodeSetSize, setID, setParent, terminateBatches, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertPlanExecutionNode

public InsertPlanExecutionNode(int nodeID,
                               QueryMetadataInterface metadata)
Method Detail

setReferences

public void setReferences(java.util.List<Reference> references)

addBatchRow

protected void addBatchRow(java.util.List row)
Overrides:
addBatchRow in class RelationalNode

pullBatch

protected TupleBatch pullBatch()
Overrides:
pullBatch in class RelationalNode

hasNextCommand

protected boolean hasNextCommand()
Overrides:
hasNextCommand in class PlanExecutionNode

openPlanImmediately

protected boolean openPlanImmediately()
Overrides:
openPlanImmediately in class PlanExecutionNode

prepareNextCommand

protected boolean prepareNextCommand()
                              throws BlockedException,
                                     TeiidComponentException,
                                     TeiidProcessingException
Overrides:
prepareNextCommand in class PlanExecutionNode
Throws:
BlockedException
TeiidComponentException
TeiidProcessingException

clone

public java.lang.Object clone()
Description copied from class: RelationalNode
All the implementation of Cloneable interface need to implement clone() method. The plan is only clonable in the pre-execution stage, not the execution state (things like program state, result sets, etc). It's only safe to call that method in between query processings, in other words, it's only safe to call clone() on a plan after nextTuple() returns null, meaning the plan has finished processing.

Overrides:
clone in class PlanExecutionNode

copy

protected void copy(InsertPlanExecutionNode source,
                    InsertPlanExecutionNode target)

closeDirect

public void closeDirect()
Overrides:
closeDirect in class PlanExecutionNode

reset

public void reset()
Overrides:
reset in class PlanExecutionNode


Copyright © 2010. All Rights Reserved.