public class IndexDefinitionNode extends TableElementNode implements IndexDefinition
TableElementNode.ElementTypeAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
IndexDefinitionNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
IndexColumnList |
getIndexColumnList() |
JoinNode.JoinType |
getJoinType() |
StorageFormatNode |
getStorageFormat() |
void |
init(Object unique,
Object indexName,
Object columnList,
Object joinType,
Object storageFormat)
Initializer for a IndexDefinitionNode
|
boolean |
isUnique() |
void |
printSubNodes(int depth)
Print the sub-nodes of this node.
|
void |
setUnique(boolean unique) |
String |
toString()
Convert this object to a String.
|
getName, init, initaccept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, 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 columnList, Object joinType, Object storageFormat) throws StandardException
init in class QueryTreeNodeunique - True means it's a unique indexindexName - The name of the indexcolumnList - A list of columns, in the order theyStandardException - Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom in class TableElementNodeStandardExceptionpublic String toString()
toString in class TableElementNodepublic void printSubNodes(int depth)
QueryTreeNodeprintSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodespublic void setUnique(boolean unique)
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.