com.akiban.sql.parser
Class IndexConstraintDefinitionNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.TableElementNode
          extended by com.akiban.sql.parser.ConstraintDefinitionNode
              extended by com.akiban.sql.parser.IndexConstraintDefinitionNode
All Implemented Interfaces:
IndexDefinition, Visitable

public class IndexConstraintDefinitionNode
extends ConstraintDefinitionNode
implements IndexDefinition


Nested Class Summary
 
Nested classes/interfaces inherited from class com.akiban.sql.parser.ConstraintDefinitionNode
ConstraintDefinitionNode.ConstraintType
 
Nested classes/interfaces inherited from class com.akiban.sql.parser.TableElementNode
TableElementNode.ElementType
 
Field Summary
 
Fields inherited from class com.akiban.sql.parser.ConstraintDefinitionNode
constraintName, constraintType, properties
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
IndexConstraintDefinitionNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 IndexColumnList getIndexColumnList()
           
 String getIndexName()
           
 JoinNode.JoinType getJoinType()
           
 StorageLocation getLocation()
           
 TableName getObjectName()
           
 boolean getUniqueness()
           
 void init(Object tableName, Object indexColumnList, Object indexName, Object joinType, Object location)
          Initialize a query tree node.
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.ConstraintDefinitionNode
getColumnList, getConstraintType, getProperties, getVerifyType, init, init, init, setProperties
 
Methods inherited from class com.akiban.sql.parser.TableElementNode
getName, init, init
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexConstraintDefinitionNode

public IndexConstraintDefinitionNode()
Method Detail

init

public void init(Object tableName,
                 Object indexColumnList,
                 Object indexName,
                 Object joinType,
                 Object location)
Description copied from class: QueryTreeNode
Initialize a query tree node.

Overrides:
init in class QueryTreeNode

getIndexName

public String getIndexName()

getIndexColumnList

public IndexColumnList getIndexColumnList()
Specified by:
getIndexColumnList in interface IndexDefinition

getJoinType

public JoinNode.JoinType getJoinType()
Specified by:
getJoinType in interface IndexDefinition

getLocation

public StorageLocation getLocation()

getUniqueness

public boolean getUniqueness()
Specified by:
getUniqueness in interface IndexDefinition

getObjectName

public TableName getObjectName()
Specified by:
getObjectName in interface IndexDefinition

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Description copied from class: ConstraintDefinitionNode
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class ConstraintDefinitionNode
Throws:
StandardException

toString

public String toString()
Description copied from class: ConstraintDefinitionNode
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Overrides:
toString in class ConstraintDefinitionNode
Returns:
This object as a String

printSubNodes

public void printSubNodes(int depth)
Description copied from class: ConstraintDefinitionNode
Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.

Overrides:
printSubNodes in class ConstraintDefinitionNode
Parameters:
depth - The depth to indent the sub-nodes


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.