public class CreateIndexNode extends DDLStatementNode
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
boundColumnIDs |
(package private) java.util.List |
columnNameList |
(package private) java.lang.String[] |
columnNames |
(package private) DataDictionary |
dd |
(package private) TableName |
indexName |
(package private) java.lang.String |
indexType |
(package private) boolean[] |
isAscending |
(package private) java.util.Properties |
properties |
(package private) TableName |
tableName |
(package private) TableDescriptor |
td |
(package private) boolean |
unique |
ADD_TYPE, DROP_STATISTICS, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE, UPDATE_STATISTICSEMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATIONAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
CreateIndexNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindStatement()
Bind this CreateIndexNode.
|
UUID |
getBoundTableID() |
java.lang.String[] |
getColumnNames() |
TableName |
getIndexName() |
TableName |
getIndexTableName() |
java.lang.String |
getIndexType() |
boolean[] |
getIsAscending() |
int[] |
getKeyColumnIDs() |
java.util.Properties |
getProperties() |
boolean |
getUniqueness() |
void |
init(java.lang.Object unique,
java.lang.Object indexType,
java.lang.Object indexName,
java.lang.Object tableName,
java.lang.Object columnNameList,
java.lang.Object properties)
Initializer for a CreateIndexNode
|
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution.
|
boolean |
referencesSessionSchema()
Return true if the node references SESSION schema tables (temporary or permanent)
|
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
private void |
verifyAndGetUniqueNames()
Check the uniqueness of the column names within the derived column list.
|
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromListexecuteSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsForaccept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExistboolean unique
DataDictionary dd
java.util.Properties properties
java.lang.String indexType
TableName indexName
TableName tableName
java.util.List columnNameList
java.lang.String[] columnNames
boolean[] isAscending
int[] boundColumnIDs
TableDescriptor td
public void init(java.lang.Object unique,
java.lang.Object indexType,
java.lang.Object indexName,
java.lang.Object tableName,
java.lang.Object columnNameList,
java.lang.Object properties)
throws StandardException
init in interface Nodeinit in class QueryTreeNodeunique - True means it's a unique indexindexType - The type of indexindexName - The name of the indextableName - The name of the table the index will be oncolumnNameList - A list of column names, in the order they
appear in the index.properties - The optional properties list associated with the index.StandardException - Thrown on errorpublic java.lang.String toString()
toString in class DDLStatementNodepublic java.lang.String statementToString()
statementToString in class StatementNodepublic boolean getUniqueness()
public java.lang.String getIndexType()
public TableName getIndexName()
public UUID getBoundTableID()
public java.util.Properties getProperties()
public TableName getIndexTableName()
public java.lang.String[] getColumnNames()
public int[] getKeyColumnIDs()
public boolean[] getIsAscending()
public void bindStatement()
throws StandardException
bindStatement in class StatementNodeStandardException - Thrown on errorpublic boolean referencesSessionSchema()
throws StandardException
referencesSessionSchema in class QueryTreeNodeStandardException - Thrown on errorpublic ConstantAction makeConstantAction() throws StandardException
makeConstantAction in class QueryTreeNodeStandardException - Thrown on failureprivate void verifyAndGetUniqueNames()
throws StandardException
StandardException - Thrown if column list contains a
duplicate name.Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.