public class AlterTableNode extends DDLStatementNode
| Modifier and Type | Field and Description |
|---|---|
int |
behavior |
boolean |
compressTable |
boolean |
defragment |
boolean |
purge |
boolean |
sequential |
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() |
ExistenceCheck |
getExistenceCheck() |
String |
getIndexNameForUpdateStatistics() |
TableElementList |
getTableElementList() |
void |
init(Object objectName,
Object arg2,
Object existenceCheck)
Initializer for a TRUNCATE TABLE or COMPRESS using temporary tables
rather than inplace compress
|
void |
init(Object objectName,
Object updateStatisticsAll,
Object indexName,
Object existenceCheck)
Initializer for a AlterTableNode for updating the statistics.
|
void |
init(Object objectName,
Object arg2,
Object arg3,
Object arg4,
Object existenceCheck)
Initializer for AlterTableNode for
a) INPLACE COMPRESS
b) Generic alter table actions
|
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, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrintpublic 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, Object existenceCheck) 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.existenceCheck - ExistenceCheck for IF EXISTSStandardException - Thrown on errorpublic void init(Object objectName, Object arg2, Object existenceCheck) 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 SEQUENTIALexistenceCheck - ExistenceCheck for IF EXISTSStandardException - Thrown on errorpublic void init(Object objectName, Object arg2, Object arg3, Object arg4, Object existenceCheck) throws StandardException
init in class QueryTreeNodeobjectName - The name of the table being alteredarg2 - a) PURGE during INPLACE COMPRESS
b) The alter table actionsarg3 - a) DEFRAGMENT during INPLACE COMPRESS
b) ADD_TYPE or DROP_TYPEarg4 - a) TRUNCATE END during INPLACE COMPRESS
b) If drop is CASCADE or RESTRICTEDexistenceCheck - ExistenceCheck for IF EXISTSStandardException - 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()
public ExistenceCheck getExistenceCheck()
public TableElementList getTableElementList()
Copyright © 2015 FoundationDB, LLC. All rights reserved.