|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.sql.lang.Command
com.metamatrix.query.sql.lang.ProcedureContainer
com.metamatrix.query.sql.lang.PreparedBatchUpdate
com.metamatrix.query.sql.lang.Insert
com.metamatrix.query.sql.lang.BulkInsert
public class BulkInsert
Bulk insert is variation of Insert command, where a single table is being inserted with multiple values. The purpose of this class from Insert is to minimize the memory footprint and avoid multiple planning and performace.
| Field Summary |
|---|
| Fields inherited from class com.metamatrix.query.sql.lang.Command |
|---|
tempGroupIDs, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE, TYPE_XQUERY |
| Constructor Summary | |
|---|---|
BulkInsert(GroupSymbol group,
java.util.List variables)
Default ctor |
|
BulkInsert(GroupSymbol group,
java.util.List variables,
java.util.List rows)
Default ctor |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addValue(Expression value)
Adds a value to the list of values |
java.lang.Object |
clone()
Return a deep copy of this Insert. |
boolean |
equals(java.lang.Object obj)
Compare two Insert commands for equality. |
java.util.List |
getRows()
Get the list of rows of column values. |
java.util.List |
getValues()
Returns a list of values to insert to be inserted. |
void |
setRows(java.util.List rows)
Get the list of rows of column values. |
void |
setValues(java.util.List values)
Sets the values to be inserted. |
int |
updatingModelCount(QueryMetadataInterface metadata)
Return the number of updates on physical sources by this command. |
| Methods inherited from class com.metamatrix.query.sql.lang.Insert |
|---|
addVariable, addVariables, areResultsCachable, getGroup, getProcedureParameters, getProjectedSymbols, getQueryExpression, getType, getVariables, hashCode, setGroup, setQueryExpression, setVariables |
| Methods inherited from class com.metamatrix.query.sql.lang.PreparedBatchUpdate |
|---|
getParameterReferences, isBatchedUpdate, setParameterReferences, setUpdatingModelCount |
| Methods inherited from class com.metamatrix.query.sql.lang.ProcedureContainer |
|---|
copyMetadataState, getContainedCommands, getSubCommand, getUpdateCount, setSubCommand, setUpdateCount |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BulkInsert(GroupSymbol group,
java.util.List variables,
java.util.List rows)
group - - Group Namevariables - - Column Names
public BulkInsert(GroupSymbol group,
java.util.List variables)
group - - Group Namevariables - - Column Names| Method Detail |
|---|
public java.util.List getRows()
public void setRows(java.util.List rows)
public void addValue(Expression value)
Insert
addValue in class Insertvalue - Expression to be added to the list of valuesInsert.addValue(com.metamatrix.query.sql.symbol.Expression)public java.util.List getValues()
Insert
getValues in class InsertExpressionsInsert.getValues()public void setValues(java.util.List values)
Insert
setValues in class Insertvalues - List of ExpressionsInsert.setValues(java.util.List)public java.lang.Object clone()
Insert
clone in interface LanguageObjectclone in class InsertObject.clone()public boolean equals(java.lang.Object obj)
Insert
equals in class Insertobj - Other object
Object.equals(java.lang.Object)public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectacceptVisitor in class Insertvisitor - Visitor being used
public int updatingModelCount(QueryMetadataInterface metadata)
throws MetaMatrixComponentException
Command
updatingModelCount in class PreparedBatchUpdatemetadata - QueryMetadataInterface
MetaMatrixComponentExceptionPreparedBatchUpdate.updatingModelCount(com.metamatrix.query.metadata.QueryMetadataInterface)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||