|
|||||||||
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
public class GroupByList
A GroupByList represents the list of expressions in a GROUP BY clause in a SELECT statement.
Field Summary | |
---|---|
(package private) int |
numGroupingColsAdded
|
(package private) boolean |
rollup
|
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
Constructor Summary | |
---|---|
GroupByList()
|
Method Summary | |
---|---|
void |
addGroupByColumn(GroupByColumn column)
Add a column to the list |
void |
bindGroupByColumns(SelectNode select,
java.util.Vector aggregateVector)
Bind the group by list. |
GroupByColumn |
findGroupingColumn(ValueNode node)
Find the matching grouping column if any for the given expression |
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. |
boolean |
isRollup()
|
void |
preprocess(int numTables,
FromList fromList,
SubqueryList whereSubquerys,
PredicateList wherePredicates)
|
void |
remapColumnReferencesToExpressions()
Remap all ColumnReferences in this tree to be clones of the underlying expression. |
void |
setRollup()
|
java.lang.String |
toString()
Convert this object to a String. |
Methods inherited from class org.apache.derby.impl.sql.compile.OrderedColumnList |
---|
getColumnOrdering |
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNodeVector |
---|
acceptChildren, addElement, destructiveAppend, elementAt, indexOf, insertElementAt, nondestructiveAppend, printSubNodes, 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
boolean rollup
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 setRollup()
public boolean isRollup()
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 errorpublic GroupByColumn findGroupingColumn(ValueNode node) throws StandardException
node
- an expression for which we are trying to find a match
in the group by list.
StandardException
public void remapColumnReferencesToExpressions() throws StandardException
StandardException
- Thrown on errorpublic java.lang.String toString()
toString
in class QueryTreeNode
public void preprocess(int numTables, FromList fromList, SubqueryList whereSubquerys, PredicateList wherePredicates) throws StandardException
StandardException
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |