Class GroupByColumn
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.OrderedColumn
org.apache.derby.impl.sql.compile.GroupByColumn
- All Implemented Interfaces:
Visitable
A GroupByColumn is a column in the GROUP BY clause.
-
Field Summary
FieldsFields inherited from class OrderedColumn
columnPosition, UNMATCHEDPOSITIONFields inherited from class QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidAccept the visitor for all visitable children of this node.(package private) voidbindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) Bind this grouping column.(package private) ValueNode(package private) StringGet the name of this column(package private) voidprintSubNodes(int depth) Prints the sub-nodes of this object.(package private) voidsetColumnExpression(ValueNode cexpr) Methods inherited from class OrderedColumn
getColumnPosition, isAscending, isNullsOrderedLow, setColumnPosition, toStringMethods inherited from class QueryTreeNode
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
-
Field Details
-
columnExpression
-
-
Constructor Details
-
GroupByColumn
GroupByColumn(ValueNode colRef, ContextManager cm) Constructor.- Parameters:
colRef- The ColumnReference for the grouping columncm- The context manager
-
-
Method Details
-
printSubNodes
void printSubNodes(int depth) Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.- Overrides:
printSubNodesin classQueryTreeNode- Parameters:
depth- The depth of this node in the tree
-
getColumnName
-
bindExpression
void bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) throws StandardException Bind this grouping column.- Parameters:
fromList- The FROM list to use for bindingsubqueryList- The SubqueryList we are building as we hit SubqueryNodes.aggregates- The aggregate list we build as we hit AggregateNodes.- Throws:
StandardException- Thrown on error
-
getColumnExpression
ValueNode getColumnExpression() -
setColumnExpression
-
acceptChildren
Accept the visitor for all visitable children of this node.- Overrides:
acceptChildrenin classQueryTreeNode- Parameters:
v- the visitor- Throws:
StandardException- on error
-