Class ProjectIntoNode
- java.lang.Object
-
- org.teiid.query.processor.relational.RelationalNode
-
- org.teiid.query.processor.relational.ProjectIntoNode
-
- All Implemented Interfaces:
Cloneable,BatchCollector.BatchProducer
public class ProjectIntoNode extends RelationalNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProjectIntoNode.Mode
-
Field Summary
-
Fields inherited from class org.teiid.query.processor.relational.RelationalNode
childCount
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProjectIntoNode()ProjectIntoNode(int nodeID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()All the implementation of Cloneable interface need to implement clone() method.voidcloseDirect()PlanNodegetDescriptionProperties()ProjectIntoNode.ModegetMode()StringgetModelName()protected voidgetNodeString(StringBuffer str)booleanisTempGroupInsert()TupleBatchnextBatchDirect()Get batch from child node Walk through each row of child batch Bind values to insertCommand Execute insertCommand Update insertCount When no more data is available, output batch with single row containing insertCountBooleanrequiresTransaction(boolean transactionalReads)voidreset()voidsetConstraint(Criteria constraint)voidsetIntoElements(List intoElements)voidsetIntoGroup(GroupSymbol group)voidsetMode(ProjectIntoNode.Mode mode)voidsetModelName(String modelName)voidsetSourceHint(SourceHint property)voidsetTransactionSupport(ExecutionFactory.TransactionSupport transactionSupport)voidsetUpsert(boolean upsert)-
Methods inherited from class org.teiid.query.processor.relational.RelationalNode
addBatchRow, addChild, close, copyTo, createLookupMap, getBatchSize, getBuffer, getBufferDirect, getBufferManager, getChildCount, getChildren, getClassName, getConnectionID, getContext, getDataManager, getElements, getEstimateNodeCardinality, getID, getNodeStatistics, getOutputElements, getParent, getProjectionIndexes, hasBuffer, hasPendingRows, initialize, isBatchFull, isClosed, isLastBatch, nextBatch, nodeToString, open, projectTuple, projectTuple, pullBatch, setContext, setElements, setEstimateDepAccessCardinality, setEstimateDepJoinCost, setEstimateJoinCost, setEstimateNodeCardinality, setEstimateNodeSetSize, setID, setParent, terminateBatches, toString, unwrapException
-
-
-
-
Method Detail
-
reset
public void reset()
- Overrides:
resetin classRelationalNode
-
setIntoGroup
public void setIntoGroup(GroupSymbol group)
-
setIntoElements
public void setIntoElements(List intoElements)
-
setModelName
public void setModelName(String modelName)
-
nextBatchDirect
public TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException
Get batch from child node Walk through each row of child batch Bind values to insertCommand Execute insertCommand Update insertCount When no more data is available, output batch with single row containing insertCount- Specified by:
nextBatchDirectin classRelationalNode- Returns:
- Throws:
BlockedExceptionTeiidComponentExceptionTeiidProcessingException- if exception related to user input occured
-
getNodeString
protected void getNodeString(StringBuffer str)
- Overrides:
getNodeStringin classRelationalNode
-
clone
public Object clone()
Description copied from class:RelationalNodeAll 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.- Specified by:
clonein classRelationalNode
-
getDescriptionProperties
public PlanNode getDescriptionProperties()
- Overrides:
getDescriptionPropertiesin classRelationalNode
-
getMode
public ProjectIntoNode.Mode getMode()
-
setMode
public void setMode(ProjectIntoNode.Mode mode)
-
isTempGroupInsert
public boolean isTempGroupInsert()
-
closeDirect
public void closeDirect()
- Overrides:
closeDirectin classRelationalNode
-
getModelName
public String getModelName()
-
requiresTransaction
public Boolean requiresTransaction(boolean transactionalReads)
- Overrides:
requiresTransactionin classRelationalNode- Returns:
- true if required, false if not required, and null if a single source command is issued and a transaction may be needed.
-
setConstraint
public void setConstraint(Criteria constraint)
-
setTransactionSupport
public void setTransactionSupport(ExecutionFactory.TransactionSupport transactionSupport)
-
setSourceHint
public void setSourceHint(SourceHint property)
-
setUpsert
public void setUpsert(boolean upsert)
-
-