com.akiban.sql.parser
Class IndexColumn

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.IndexColumn
All Implemented Interfaces:
Visitable

public class IndexColumn
extends QueryTreeNode

An IndexColumn is the element of an index definition.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
IndexColumn()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 String getColumnName()
           
 TableName getTableName()
           
 void init(Object columnName, Object ascending)
          Initializer.
 void init(Object tableName, Object columnName, Object ascending)
          Initializer.
 boolean isAscending()
           
 boolean isPartOfGroupIndex()
           
 String toString()
          Convert this object to a String.
 
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, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, 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

IndexColumn

public IndexColumn()
Method Detail

init

public void init(Object columnName,
                 Object ascending)
Initializer.

Overrides:
init in class QueryTreeNode
Parameters:
columnName - Name of the column
ascending - Whether index is ascending

init

public void init(Object tableName,
                 Object columnName,
                 Object ascending)
Initializer.

Overrides:
init in class QueryTreeNode
Parameters:
tableName - Table holding indexed column
columnName - Name of the column
ascending - Whether index is ascending

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class QueryTreeNode
Throws:
StandardException

toString

public String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

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

getTableName

public TableName getTableName()

getColumnName

public String getColumnName()

isPartOfGroupIndex

public boolean isPartOfGroupIndex()

isAscending

public boolean isAscending()
Returns:
true if ascending, false if descending


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