|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.QueryTreeNodeVector
org.apache.derby.impl.sql.compile.OrderedColumnList
org.apache.derby.impl.sql.compile.GroupByList
A GroupByList represents the list of expressions in a GROUP BY clause in a SELECT statement.
| Field Summary | |
(package private) int |
numGroupingColsAdded
|
| Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
| Constructor Summary | |
GroupByList()
|
|
| Method Summary | |
void |
addGroupByColumn(GroupByColumn column)
Add a column to the list |
void |
addNewGroupingColumnsToRCL(SelectNode selectNode)
Add any grouping columns which are not already in the appropriate RCL to the RCL. |
void |
bindGroupByColumns(SelectNode select,
java.util.Vector aggregateVector)
Bind the group by list. |
GroupByColumn |
containsColumnReference(ColumnReference cr)
|
GroupByColumn |
getGroupByColumn(int position)
Get a column from the list |
int |
getNumNeedToAddGroupingCols()
Get the number of grouping columns that need to be added to the SELECT list. |
void |
printSubNodes(int depth)
Print the list. |
void |
remapColumnReferencesToExpressions()
Remap all ColumnReferences in this tree to be clones of the underlying expression. |
java.lang.String |
toString()
Print it out, baby |
void |
verifyUniqueGroupingColumns()
Check the uniqueness of the column names within a GROUP BY list. |
| Methods inherited from class org.apache.derby.impl.sql.compile.OrderedColumnList |
accept, addElement, destructiveAppend, elementAt, getColumnOrdering, indexOf, insertElementAt, nondestructiveAppend, remove, removeAllElements, removeElement, removeElementAt, setElementAt, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
int numGroupingColsAdded
| Constructor Detail |
public GroupByList()
| Method Detail |
public void addGroupByColumn(GroupByColumn column)
column - The column to add to the listpublic GroupByColumn getGroupByColumn(int position)
position - The column to get from the listpublic void printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth at which to indent the sub-nodes
public int getNumNeedToAddGroupingCols()
public void bindGroupByColumns(SelectNode select,
java.util.Vector aggregateVector)
throws StandardException
select - The SelectNodeaggregateVector - The aggregate vector being built as we find AggregateNodes
StandardException - Thrown on error
public void verifyUniqueGroupingColumns()
throws StandardException
StandardException - Thrown on error
public void addNewGroupingColumnsToRCL(SelectNode selectNode)
throws StandardException
selectNode - The SelectNode whose RCL we add to.
StandardException - Thrown on errorpublic GroupByColumn containsColumnReference(ColumnReference cr)
public void remapColumnReferencesToExpressions()
throws StandardException
StandardException - Thrown on errorpublic java.lang.String toString()
toString in class QueryTreeNodeVector
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||