java.lang.Iterable<GroupByColumn>, Visitableclass GroupByList extends OrderedColumnList<GroupByColumn>
| Modifier and Type | Field | Description |
|---|---|---|
(package private) int |
numGroupingColsAdded |
|
(package private) boolean |
rollup |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEXeltClass| Constructor | Description |
|---|---|
GroupByList(ContextManager cm) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumnOrderingaccept, 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, verifyClassExistacceptChildren, addElement, destructiveAppend, elementAt, indexOf, insertElementAt, iterator, nondestructiveAppend, printSubNodes, removeAllElements, removeElement, removeElementAt, setElementAt, sizepublic 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.StandardExceptionvoid remapColumnReferencesToExpressions()
throws StandardException
StandardException - Thrown on errorpublic java.lang.String toString()
toString in class QueryTreeNodevoid preprocess(int numTables,
FromList fromList,
SubqueryList whereSubquerys,
PredicateList wherePredicates)
throws StandardException
StandardExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.