com.akiban.sql.parser
Class GroupByList

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.QueryTreeNodeList<N>
          extended by com.akiban.sql.parser.OrderedColumnList<GroupByColumn>
              extended by com.akiban.sql.parser.GroupByList
All Implemented Interfaces:
Visitable, Iterable<GroupByColumn>

public class GroupByList
extends OrderedColumnList<GroupByColumn>

A GroupByList represents the list of expressions in a GROUP BY clause in a SELECT statement.


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
GroupByList()
           
 
Method Summary
 void addGroupByColumn(GroupByColumn column)
          Add a column to the list
 GroupByColumn getGroupByColumn(int position)
          Get a column from the list
 boolean isRollup()
           
 void setRollup()
           
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNodeList
add, add, addAll, clear, copyFrom, destructiveAddAll, get, getList, indexOf, isEmpty, iterator, printSubNodes, remove, remove, set, size
 
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, 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

GroupByList

public GroupByList()
Method Detail

addGroupByColumn

public void addGroupByColumn(GroupByColumn column)
Add a column to the list

Parameters:
column - The column to add to the list

getGroupByColumn

public GroupByColumn getGroupByColumn(int position)
Get a column from the list

Parameters:
position - The column to get from the list

setRollup

public void setRollup()

isRollup

public boolean isRollup()

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


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