class GroupByList extends OrderedColumnList<GroupByColumn>
Modifier and Type | Field and Description |
---|---|
(package private) int |
numGroupingColsAdded |
(package private) boolean |
rollup |
eltClass
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
GroupByList(ContextManager cm) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addGroupByColumn(GroupByColumn column)
Add a column to the list
|
(package private) void |
bindGroupByColumns(SelectNode select,
java.util.List<AggregateNode> aggregates)
Bind the group by list.
|
(package private) GroupByColumn |
findGroupingColumn(ValueNode node)
Find the matching grouping column if any for the given expression
|
(package private) GroupByColumn |
getGroupByColumn(int position)
Get a column from the list
|
(package private) int |
getNumNeedToAddGroupingCols()
Get the number of grouping columns that need to be added to the SELECT list.
|
(package private) boolean |
isRollup() |
(package private) void |
preprocess(int numTables,
FromList fromList,
SubqueryList whereSubquerys,
PredicateList wherePredicates) |
(package private) void |
remapColumnReferencesToExpressions()
Remap all ColumnReferences in this tree to be clones of the
underlying expression.
|
(package private) void |
setRollup() |
java.lang.String |
toString()
Convert this object to a String.
|
getColumnOrdering
acceptChildren, addElement, destructiveAppend, elementAt, indexOf, insertElementAt, iterator, nondestructiveAppend, printSubNodes, removeAllElements, removeElement, removeElementAt, setElementAt, size
accept, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
public GroupByList(ContextManager cm)
void addGroupByColumn(GroupByColumn column)
column
- The column to add to the listGroupByColumn getGroupByColumn(int position)
position
- The column to get from the listvoid setRollup()
boolean isRollup()
int getNumNeedToAddGroupingCols()
void bindGroupByColumns(SelectNode select, java.util.List<AggregateNode> aggregates) throws StandardException
select
- The SelectNodeaggregates
- The aggregate list being built as we find AggregateNodesStandardException
- Thrown on errorGroupByColumn findGroupingColumn(ValueNode node) throws StandardException
node
- an expression for which we are trying to find a match
in the group by list.StandardException
void remapColumnReferencesToExpressions() throws StandardException
StandardException
- Thrown on errorpublic java.lang.String toString()
toString
in class QueryTreeNode
void preprocess(int numTables, FromList fromList, SubqueryList whereSubquerys, PredicateList wherePredicates) throws StandardException
StandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.