| Modifier and Type | Field and Description |
|---|---|
| public TableDescriptor | |
| public int | |
| private int | |
| protected ColumnInfo[] | |
| public boolean | |
| protected ConstraintConstantAction[] | |
| public boolean | |
| private boolean | dropStatistics
dropStatistics will indicate that we are here for dropping the statistics. |
| private boolean | dropStatisticsAll
The flag dropStatisticsAll will tell if we are going to drop the statistics of all indexes or just one index on a table. |
| private String | indexNameForStatistics
If statistic is getting updated/dropped for just one index, then indexNameForStatistics will tell the name of the specific index whose statistics need to be updated/dropped. |
| pack-priv char | |
| protected int | |
| public boolean | |
| protected SchemaDescriptor | |
| public boolean | |
| public TableElementList | |
| public boolean | |
| private boolean | |
| private boolean | updateStatistics
updateStatistics will indicate that we are here for updating the statistics. |
| private boolean | updateStatisticsAll
The flag updateStatisticsAll will tell if we are going to update the statistics of all indexes or just one index on a table. |
| Access | Constructor and Description |
|---|---|
| pack-priv | AlterTableNode(TableName
The name of the table being truncated tableName, ContextManager Context manager cm)Constructor for TRUNCATE TABLE |
| pack-priv | AlterTableNode(TableName
The name of the table being altered tableName, boolean Whether or not the COMPRESS is SEQUENTIAL sequential, ContextManager Context manager cm)Constructor for COMPRESS using temporary tables rather than in place compress |
| pack-priv | AlterTableNode(TableName
The name of the table being altered tableName, boolean PURGE during INPLACE COMPRESS? purge, boolean DEFRAGMENT during INPLACE COMPRESS? defragment, boolean TRUNCATE END during INPLACE COMPRESS? truncateEndOfTable, ContextManager Context manager cm)Constructor for INPLACE COMPRESS |
| pack-priv | AlterTableNode(TableName
The name of the table being altered tableName, int update or drop statistics changeType, boolean true means update or drop
the statistics of all the indexes on the table.
false means update or drop the statistics of
only the index name provided by next parameter.Name of the index for which statistics is to be updated
or dropped indexName, ContextManager Context manager cm)Constructor for UPDATE_STATISTICS or DROP_STATISTICS |
| pack-priv | AlterTableNode(TableName
The name of the table being altered tableName, int add, drop, modify or lock changeType, TableElementList list of table elements impacted impactedElements, char lock granularity encoded in a single character lockGranularity, int cascade or restrict (for DROP_TYPE) behavior, ContextManager Context Manager cm)Constructor for ADD_TYPE, DROP_TYPE, MODIFY_TYPE and LOCK_TYPE |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept the visitor for all visitable children of this node. |
| public void | bindStatement()
Overrides org. Bind this AlterTableNode. |
| public void | |
| public int | |
| public ConstantAction | makeConstantAction()
Overrides org. Create the Constant information that will drive the guts of Execution. |
| private void | |
| pack-priv void | printSubNodes(int
The depth to indent the sub-nodes depth)Overrides org. Prints the sub-nodes of this object. |
| public boolean | Returns: true if references SESSION schema tables, else falseOverrides org. Return true if the node references SESSION schema tables (temporary or permanent) |
| public String | statementToString()
Implements abstract org.
|
| public String | Returns: This object as a StringOverrides org. Convert this object to a String. |
| baseTable | back to summary |
|---|---|
| public TableDescriptor baseTable | |
| behavior | back to summary |
|---|---|
| public int behavior | |
| changeType | back to summary |
|---|---|
| private int changeType | |
| colInfos | back to summary |
|---|---|
| protected ColumnInfo[] colInfos | |
| compressTable | back to summary |
|---|---|
| public boolean compressTable | |
| conActions | back to summary |
|---|---|
| protected ConstraintConstantAction[] conActions | |
| defragment | back to summary |
|---|---|
| public boolean defragment | |
| dropStatistics | back to summary |
|---|---|
| private boolean dropStatistics dropStatistics will indicate that we are here for dropping the statistics. It could be statistics of just one index or all the indexes on a given table. | |
| dropStatisticsAll | back to summary |
|---|---|
| private boolean dropStatisticsAll The flag dropStatisticsAll will tell if we are going to drop the statistics of all indexes or just one index on a table. | |
| indexNameForStatistics | back to summary |
|---|---|
| private String indexNameForStatistics If statistic is getting updated/dropped for just one index, then indexNameForStatistics will tell the name of the specific index whose statistics need to be updated/dropped. | |
| lockGranularity | back to summary |
|---|---|
| pack-priv char lockGranularity | |
| numConstraints | back to summary |
|---|---|
| protected int numConstraints | |
| purge | back to summary |
|---|---|
| public boolean purge | |
| schemaDescriptor | back to summary |
|---|---|
| protected SchemaDescriptor schemaDescriptor | |
| sequential | back to summary |
|---|---|
| public boolean sequential | |
| tableElementList | back to summary |
|---|---|
| public TableElementList tableElementList | |
| truncateEndOfTable | back to summary |
|---|---|
| public boolean truncateEndOfTable | |
| truncateTable | back to summary |
|---|---|
| private boolean truncateTable | |
| updateStatistics | back to summary |
|---|---|
| private boolean updateStatistics updateStatistics will indicate that we are here for updating the statistics. It could be statistics of just one index or all the indexes on a given table. | |
| updateStatisticsAll | back to summary |
|---|---|
| private boolean updateStatisticsAll The flag updateStatisticsAll will tell if we are going to update the statistics of all indexes or just one index on a table. | |
| AlterTableNode | back to summary |
|---|---|
| pack-priv AlterTableNode(TableName tableName, ContextManager cm) throws StandardException Constructor for TRUNCATE TABLE
| |
| AlterTableNode | back to summary |
|---|---|
| pack-priv AlterTableNode(TableName tableName, boolean sequential, ContextManager cm) throws StandardException Constructor for COMPRESS using temporary tables rather than in place compress
| |
| AlterTableNode | back to summary |
|---|---|
| pack-priv AlterTableNode(TableName tableName, boolean purge, boolean defragment, boolean truncateEndOfTable, ContextManager cm) throws StandardException Constructor for INPLACE COMPRESS
| |
| AlterTableNode | back to summary |
|---|---|
| pack-priv AlterTableNode(TableName tableName, int changeType, boolean statsAll, String indexName, ContextManager cm) throws StandardException Constructor for UPDATE_STATISTICS or DROP_STATISTICS
| |
| AlterTableNode | back to summary |
|---|---|
| pack-priv AlterTableNode(TableName tableName, int changeType, TableElementList impactedElements, char lockGranularity, int behavior, ContextManager cm) throws StandardException Constructor for ADD_TYPE, DROP_TYPE, MODIFY_TYPE and LOCK_TYPE
| |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Accept the visitor for all visitable children of this node.
| |
| bindStatement | back to summary |
|---|---|
| public void bindStatement() throws StandardException Overrides org. Bind this AlterTableNode. This means doing any static error checking that can be done before actually creating the table. For example, verifying that the user is not trying to add a non-nullable column.
| |
| genColumnInfo | back to summary |
|---|---|
| public void genColumnInfo() throws StandardException Generate the ColumnInfo argument for the constant action. Return the number of constraints. | |
| getChangeType | back to summary |
|---|---|
| public int getChangeType() | |
| makeConstantAction | back to summary |
|---|---|
| public ConstantAction makeConstantAction() throws StandardException Overrides org. Create the Constant information that will drive the guts of Execution.
| |
| prepConstantAction | back to summary |
|---|---|
| private void prepConstantAction() throws StandardException Generate arguments to constant action. Called by makeConstantAction() in this class and in our subclass RepAlterTableNode.
| |
| printSubNodes | back to summary |
|---|---|
| pack-priv void printSubNodes(int depth) Overrides org. Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
| |
| referencesSessionSchema | back to summary |
|---|---|
| public boolean referencesSessionSchema() throws StandardException Overrides org. Return true if the node references SESSION schema tables (temporary or permanent)
| |
| statementToString | back to summary |
|---|---|
| public String statementToString() Implements abstract org. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |