public class CreateIndexNode extends DDLStatementNode
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
CreateIndexNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
IndexColumnList |
getColumnList() |
ExistenceCheck |
getExistenceCheck() |
TableName |
getIndexName() |
TableName |
getIndexTableName() |
java.lang.String |
getIndexType() |
JoinNode.JoinType |
getJoinType() |
java.util.Properties |
getProperties() |
StorageLocation |
getStorageLocation() |
boolean |
getUniqueness() |
void |
init(java.lang.Object unique,
java.lang.Object indexType,
java.lang.Object indexName,
java.lang.Object tableName,
java.lang.Object columnList,
java.lang.Object joinType,
java.lang.Object properties,
java.lang.Object existenceCheck,
java.lang.Object storageLocation)
Initializer for a CreateIndexNode
|
void |
printSubNodes(int depth)
Print the sub-nodes of this node.
|
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomic
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public void init(java.lang.Object unique, java.lang.Object indexType, java.lang.Object indexName, java.lang.Object tableName, java.lang.Object columnList, java.lang.Object joinType, java.lang.Object properties, java.lang.Object existenceCheck, java.lang.Object storageLocation) throws StandardException
init
in class QueryTreeNode
unique
- 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 oncolumnList
- A list of columns, in the order they
appear in the index.properties
- The optional properties list associated with the index.StandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class DDLStatementNode
StandardException
public java.lang.String toString()
toString
in class DDLStatementNode
public void printSubNodes(int depth)
QueryTreeNode
printSubNodes
in class QueryTreeNode
depth
- The depth to indent the sub-nodespublic java.lang.String statementToString()
statementToString
in class StatementNode
public boolean getUniqueness()
public java.lang.String getIndexType()
public TableName getIndexName()
public IndexColumnList getColumnList()
public JoinNode.JoinType getJoinType()
public java.util.Properties getProperties()
public TableName getIndexTableName()
public ExistenceCheck getExistenceCheck()
public StorageLocation getStorageLocation()
Copyright © 2013. All Rights Reserved.