org.apache.derby.impl.sql.compile
Class GroupByColumn

java.lang.Object
  extended by org.apache.derby.impl.sql.compile.QueryTreeNode
      extended by org.apache.derby.impl.sql.compile.OrderedColumn
          extended by 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.


Field Summary
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_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
 
Constructor Summary
GroupByColumn()
           
 
Method Summary
(package private)  void acceptChildren(Visitor v)
          Accept the visitor for all visitable children of this node.
 void bindExpression(FromList fromList, SubqueryList subqueryList, java.util.Vector aggregateVector)
          Bind this grouping column.
 ValueNode getColumnExpression()
           
 java.lang.String getColumnName()
          Get the name of this column
 void init(java.lang.Object colRef)
          Initializer.
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 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, 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
 

Field Detail

columnExpression

private ValueNode columnExpression
Constructor Detail

GroupByColumn

public GroupByColumn()
Method Detail

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 binding
subqueryList - 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

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.