|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.StatementNode
com.akiban.sql.parser.DDLStatementNode
com.akiban.sql.parser.AlterTableNode
public class AlterTableNode
A AlterTableNode represents a DDL statement that alters a table. It contains the name of the object to be created.
| Field Summary | |
|---|---|
int |
behavior
|
boolean |
compressTable
|
boolean |
defragment
|
boolean |
purge
|
boolean |
sequential
|
TableElementList |
tableElementList
|
boolean |
truncateEndOfTable
|
| Fields inherited from class com.akiban.sql.parser.DDLStatementNode |
|---|
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE |
| Fields inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX |
| Constructor Summary | |
|---|---|
AlterTableNode()
|
|
| Method Summary | |
|---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node. |
int |
getChangeType()
|
String |
getIndexNameForUpdateStatistics()
|
void |
init(Object objectName)
Initializer for a TRUNCATE TABLE |
void |
init(Object objectName,
Object sequential)
Initializer for a AlterTableNode for 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 |
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. |
| Methods inherited from class com.akiban.sql.parser.DDLStatementNode |
|---|
getFullName, getObjectName, getRelativeName, initAndCheck, isAtomic |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
accept, 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, treePrint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public TableElementList tableElementList
public boolean compressTable
public boolean sequential
public boolean purge
public boolean defragment
public boolean truncateEndOfTable
public int behavior
| Constructor Detail |
|---|
public AlterTableNode()
| Method Detail |
|---|
public void init(Object objectName)
throws StandardException
init in class DDLStatementNodeobjectName - The name of the table being truncated
StandardException - Thrown on error
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 error
public void init(Object objectName,
Object sequential)
throws StandardException
init in class QueryTreeNodeobjectName - The name of the table being alteredsequential - Whether or not the COMPRESS is SEQUENTIAL
StandardException - Thrown on error
public 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 error
public 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 RESTRICTED
StandardException - Thrown on error
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||