public class GroupByList extends OrderedColumnList
Modifier and Type | Field and Description |
---|---|
(package private) int |
numGroupingColsAdded |
(package private) boolean |
rollup |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
GroupByList() |
Modifier and Type | Method and Description |
---|---|
void |
addGroupByColumn(GroupByColumn column)
Add a column to the list
|
(package private) void |
bindGroupByColumns(SelectNode select,
java.util.List 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.
|
getColumnOrdering
acceptChildren, addElement, destructiveAppend, elementAt, indexOf, insertElementAt, nondestructiveAppend, printSubNodes, remove, removeAllElements, removeElement, removeElementAt, setElementAt, size
accept, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist
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()
void bindGroupByColumns(SelectNode select, java.util.List aggregateVector) throws StandardException
select
- The SelectNodeaggregateVector
- The aggregate vector being built as we find AggregateNodesStandardException
- 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
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.