org.apache.derby.impl.sql.compile
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
public class GroupByColumn
- extends OrderedColumn
A GroupByColumn is a column in the GROUP BY clause.
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
accept, bindOffsetFetch, bindRowMultiSet, 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, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
columnExpression
private ValueNode columnExpression
GroupByColumn
public GroupByColumn()
init
public void init(java.lang.Object colRef)
- Initializer.
- Overrides:
init
in class QueryTreeNode
- Parameters:
colRef
- The ColumnReference for the grouping column
printSubNodes
public 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 class QueryTreeNode
- Parameters:
depth
- The depth of this node in the tree
getColumnName
public java.lang.String getColumnName()
- Get the name of this column
- Returns:
- The name of this column
bindExpression
public void bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.Vector aggregateVector)
throws StandardException
- Bind this grouping column.
- Parameters:
fromList
- The FROM list to use for bindingsubqueryList
- The SubqueryList we are building as we hit
SubqueryNodes.aggregateVector
- The aggregate vector we build as we hit
AggregateNodes.
- Throws:
StandardException
- Thrown on error
getColumnExpression
public ValueNode getColumnExpression()
setColumnExpression
public void setColumnExpression(ValueNode cexpr)
acceptChildren
void acceptChildren(Visitor v)
throws StandardException
- Accept the visitor for all visitable children of this node.
- Overrides:
acceptChildren
in class QueryTreeNode
- Parameters:
v
- the visitor
- Throws:
StandardException
- on error
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.