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
class GroupByColumn extends OrderedColumn
A GroupByColumn is a column in the GROUP BY clause.
-
-
Field Summary
Fields Modifier and Type Field Description private ValueNode
columnExpression
-
Fields inherited from class org.apache.derby.impl.sql.compile.OrderedColumn
columnPosition, UNMATCHEDPOSITION
-
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
-
-
Constructor Summary
Constructors Constructor Description GroupByColumn(ValueNode colRef, ContextManager cm)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
acceptChildren(Visitor v)
Accept the visitor for all visitable children of this node.(package private) void
bindExpression(FromList fromList, SubqueryList subqueryList, java.util.List<AggregateNode> aggregates)
Bind this grouping column.(package private) ValueNode
getColumnExpression()
(package private) java.lang.String
getColumnName()
Get the name of this column(package private) void
printSubNodes(int depth)
Prints the sub-nodes of this object.(package private) void
setColumnExpression(ValueNode cexpr)
-
Methods inherited from class org.apache.derby.impl.sql.compile.OrderedColumn
getColumnPosition, isAscending, isNullsOrderedLow, setColumnPosition, toString
-
Methods inherited from class org.apache.derby.impl.sql.compile.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 Detail
-
columnExpression
private ValueNode columnExpression
-
-
Constructor Detail
-
GroupByColumn
GroupByColumn(ValueNode colRef, ContextManager cm)
Constructor.- Parameters:
colRef
- The ColumnReference for the grouping columncm
- The context manager
-
-
Method Detail
-
printSubNodes
void printSubNodes(int depth)
Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.- Overrides:
printSubNodes
in classQueryTreeNode
- Parameters:
depth
- The depth of this node in the tree
-
getColumnName
java.lang.String getColumnName()
Get the name of this column- Returns:
- The name of this column
-
bindExpression
void bindExpression(FromList fromList, SubqueryList subqueryList, java.util.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
void setColumnExpression(ValueNode cexpr)
-
acceptChildren
void acceptChildren(Visitor v) throws StandardException
Accept the visitor for all visitable children of this node.- Overrides:
acceptChildren
in classQueryTreeNode
- Parameters:
v
- the visitor- Throws:
StandardException
- on error
-
-