Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

pack-priv Class GroupByColumn

extends OrderedColumn
Class Inheritance
Imports
java.util.List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.compile.CompilerContext, .Visitor, org.apache.derby.iapi.types.TypeId

A GroupByColumn is a column in the GROUP BY clause.

Field Summary

Modifier and TypeField and Description
private ValueNode
Inherited from org.apache.derby.impl.sql.compile.OrderedColumn:
columnPositionUNMATCHEDPOSITION

Constructor Summary

AccessConstructor and Description
pack-priv
GroupByColumn(ValueNode
The ColumnReference for the grouping column
colRef
,
ContextManager
The context manager
cm
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
acceptChildren(Visitor
the visitor
v
)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.acceptChildren.

Accept the visitor for all visitable children of this node.

pack-priv void
bindExpression(FromList
The FROM list to use for binding
fromList
,
SubqueryList
The SubqueryList we are building as we hit SubqueryNodes.
subqueryList
,
List<AggregateNode>
The aggregate list we build as we hit AggregateNodes.
aggregates
)

Bind this grouping column.

pack-priv ValueNode
pack-priv String

Returns:

The name of this column
getColumnName
()

Get the name of this column

pack-priv void
printSubNodes(int
The depth of this node in the tree
depth
)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.printSubNodes.

Prints the sub-nodes of this object.

pack-priv void
Inherited from org.apache.derby.impl.sql.compile.OrderedColumn:
getColumnPositionisAscendingisNullsOrderedLowsetColumnPositiontoString

Field Detail

columnExpressionback to summary
private ValueNode columnExpression

Constructor Detail

GroupByColumnback to summary
pack-priv GroupByColumn(ValueNode colRef, ContextManager cm)

Constructor.

Parameters
colRef:ValueNode

The ColumnReference for the grouping column

cm:ContextManager

The context manager

Method Detail

acceptChildrenback to summary
pack-priv void acceptChildren(Visitor v) throws StandardException

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.acceptChildren.

Accept the visitor for all visitable children of this node.

Parameters
v:Visitor

the visitor

Annotations
@Override
Exceptions
StandardException:
on error
bindExpressionback to summary
pack-priv void bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) throws StandardException

Bind this grouping column.

Parameters
fromList:FromList

The FROM list to use for binding

subqueryList:SubqueryList

The SubqueryList we are building as we hit SubqueryNodes.

aggregates:List<AggregateNode>

The aggregate list we build as we hit AggregateNodes.

Exceptions
StandardException:
Thrown on error
getColumnExpressionback to summary
pack-priv ValueNode getColumnExpression()
getColumnNameback to summary
pack-priv String getColumnName()

Get the name of this column

Returns:String

The name of this column

printSubNodesback to summary
pack-priv void printSubNodes(int depth)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.printSubNodes.

Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.

Parameters
depth:int

The depth of this node in the tree

Annotations
@Override
setColumnExpressionback to summary
pack-priv void setColumnExpression(ValueNode cexpr)