public class CreateIndexNode extends DDLStatementNode implements IndexDefinition
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPEAUTOINCREMENT_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.
|
ExistenceCheck |
getExistenceCheck() |
IndexColumnList |
getIndexColumnList() |
TableName |
getIndexName() |
TableName |
getIndexTableName() |
JoinNode.JoinType |
getJoinType() |
Properties |
getProperties() |
StorageFormatNode |
getStorageFormat() |
void |
init(Object unique,
Object indexName,
Object tableName,
Object columnList,
Object joinType,
Object properties,
Object existenceCheck,
Object storageFormat)
Initializer for a CreateIndexNode
|
boolean |
isUnique() |
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, isAtomicaccept, 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, treePrintpublic void init(Object unique, Object indexName, Object tableName, Object columnList, Object joinType, Object properties, Object existenceCheck, Object storageFormat) throws StandardException
init in class QueryTreeNodeunique - True means it's a unique 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 DDLStatementNodeStandardExceptionpublic String toString()
toString in class DDLStatementNodepublic void printSubNodes(int depth)
QueryTreeNodeprintSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodespublic String statementToString()
statementToString in class StatementNodepublic TableName getIndexName()
public TableName getIndexTableName()
public Properties getProperties()
public ExistenceCheck getExistenceCheck()
public boolean isUnique()
isUnique in interface IndexDefinitionpublic JoinNode.JoinType getJoinType()
getJoinType in interface IndexDefinitionpublic IndexColumnList getIndexColumnList()
getIndexColumnList in interface IndexDefinitionpublic StorageFormatNode getStorageFormat()
getStorageFormat in interface IndexDefinitionCopyright © 2015 FoundationDB, LLC. All rights reserved.