public class CreateIndexNode extends DDLStatementNode implements IndexDefinition
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() |
IndexColumnList |
getIndexColumnList() |
TableName |
getIndexName() |
TableName |
getIndexTableName() |
String |
getIndexType() |
JoinNode.JoinType |
getJoinType() |
Properties |
getProperties() |
StorageLocation |
getStorageLocation() |
boolean |
getUniqueness() |
void |
init(Object unique,
Object indexType,
Object indexName,
Object tableName,
Object columnList,
Object joinType,
Object properties,
Object existenceCheck,
Object storageLocation)
Initializer for a CreateIndexNode
|
void |
printSubNodes(int depth)
Print the sub-nodes of this node.
|
String |
statementToString() |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName
public void init(Object unique, Object indexType, Object indexName, Object tableName, Object columnList, Object joinType, Object properties, Object existenceCheck, 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 String toString()
toString
in class DDLStatementNode
public void printSubNodes(int depth)
QueryTreeNode
printSubNodes
in class QueryTreeNode
depth
- The depth to indent the sub-nodespublic String statementToString()
statementToString
in class StatementNode
public boolean getUniqueness()
getUniqueness
in interface IndexDefinition
public String getIndexType()
public TableName getIndexName()
public IndexColumnList getColumnList()
public IndexColumnList getIndexColumnList()
getIndexColumnList
in interface IndexDefinition
public JoinNode.JoinType getJoinType()
getJoinType
in interface IndexDefinition
public Properties getProperties()
public TableName getIndexTableName()
public ExistenceCheck getExistenceCheck()
public StorageLocation getStorageLocation()
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.