com.akiban.sql.parser
Class GroupByColumn

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

public class GroupByColumn
extends OrderedColumn

A GroupByColumn is a column in the GROUP BY clause.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.OrderedColumn
columnPosition, UNMATCHEDPOSITION
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
GroupByColumn()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 ValueNode getColumnExpression()
           
 String getColumnName()
          Get the name of this column
 void init(Object colRef)
          Initializer.
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 void setColumnExpression(ValueNode cexpr)
           
 
Methods inherited from class com.akiban.sql.parser.OrderedColumn
getColumnPosition, isAscending, isNullsOrderedLow, setColumnPosition, toString
 
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, 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

GroupByColumn

public GroupByColumn()
Method Detail

init

public void init(Object colRef)
Initializer.

Overrides:
init in class QueryTreeNode
Parameters:
colRef - The ColumnReference for the grouping column

copyFrom

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

Overrides:
copyFrom in class OrderedColumn
Throws:
StandardException

printSubNodes

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

Overrides:
printSubNodes in class QueryTreeNode
Parameters:
depth - The depth of this node in the tree

getColumnName

public String getColumnName()
Get the name of this column

Returns:
The name of this column

getColumnExpression

public ValueNode getColumnExpression()

setColumnExpression

public void setColumnExpression(ValueNode cexpr)


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