public class AlterTableNode extends DDLStatementNode
| Modifier and Type | Field and Description |
|---|---|
int |
behavior |
boolean |
compressTable |
boolean |
defragment |
boolean |
purge |
boolean |
sequential |
TableElementList |
tableElementList |
boolean |
truncateEndOfTable |
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPEAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
AlterTableNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
int |
getBehavior() |
int |
getChangeType() |
String |
getIndexNameForUpdateStatistics() |
void |
init(Object objectName,
Object arg2)
Initializer for a TRUNCATE TABLE or COMPRESS using temporary tables
rather than inplace compress
|
void |
init(Object objectName,
Object updateStatisticsAll,
Object indexName)
Initializer for a AlterTableNode for updating the statistics.
|
void |
init(Object objectName,
Object purge,
Object defragment,
Object truncateEndOfTable)
Initializer for a AlterTableNode for INPLACE COMPRESS
|
void |
init(Object objectName,
Object tableElementList,
Object lockGranularity,
Object changeType,
Object behavior)
Initializer for a AlterTableNode
|
boolean |
isCascade() |
boolean |
isCompressTable() |
boolean |
isTruncateTable() |
boolean |
isUpdateStatistics() |
boolean |
isUpdateStatisticsAll() |
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
String |
statementToString() |
String |
toString()
Convert this object to a String.
|
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomicaccept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrintpublic TableElementList tableElementList
public boolean compressTable
public boolean sequential
public boolean purge
public boolean defragment
public boolean truncateEndOfTable
public int behavior
public void init(Object objectName, Object updateStatisticsAll, Object indexName) throws StandardException
init in class QueryTreeNodeobjectName - The name of the table whose index(es) will have
their statistics updated.updateStatisticsAll - If true then update the statistics of all
the indexes on the table. If false, then update
the statistics of only the index provided as
3rd parameter hereindexName - Only used if updateStatisticsAll is set to
false.StandardException - Thrown on errorpublic void init(Object objectName, Object arg2) throws StandardException
init in class QueryTreeNodeobjectName - The name of the table being alteredarg2 - int[]: Behavior CASCADE or RESTRICTED
Boolean: Whether or not the COMPRESS is SEQUENTIALStandardException - Thrown on errorpublic void init(Object objectName, Object purge, Object defragment, Object truncateEndOfTable) throws StandardException
init in class QueryTreeNodeobjectName - The name of the table being alteredpurge - PURGE during INPLACE COMPRESS?defragment - DEFRAGMENT during INPLACE COMPRESS?truncateEndOfTable - TRUNCATE END during INPLACE COMPRESS?StandardException - Thrown on errorpublic void init(Object objectName, Object tableElementList, Object lockGranularity, Object changeType, Object behavior) throws StandardException
init in class QueryTreeNodeobjectName - The name of the table being alteredtableElementList - The alter table actionlockGranularity - The new lock granularity, if anychangeType - ADD_TYPE or DROP_TYPEbehavior - If drop column is CASCADE or RESTRICTEDStandardException - Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom in class DDLStatementNodeStandardExceptionpublic String toString()
toString in class DDLStatementNodepublic void printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodespublic String statementToString()
statementToString in class StatementNodepublic boolean isUpdateStatistics()
public boolean isUpdateStatisticsAll()
public String getIndexNameForUpdateStatistics()
public boolean isCompressTable()
public boolean isTruncateTable()
public int getChangeType()
public int getBehavior()
public boolean isCascade()
Copyright © 2014 FoundationDB, LLC. All rights reserved.