Class GroupByColumn

All Implemented Interfaces:
Visitable

class GroupByColumn extends OrderedColumn
A GroupByColumn is a column in the GROUP BY clause.
  • Field Details

    • columnExpression

      private ValueNode columnExpression
  • Constructor Details

    • GroupByColumn

      GroupByColumn(ValueNode colRef, ContextManager cm)
      Constructor.
      Parameters:
      colRef - The ColumnReference for the grouping column
      cm - 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:
      printSubNodes in class QueryTreeNode
      Parameters:
      depth - The depth of this node in the tree
    • getColumnName

      String getColumnName()
      Get the name of this column
      Returns:
      The name of this column
    • bindExpression

      void bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) 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.
      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 class QueryTreeNode
      Parameters:
      v - the visitor
      Throws:
      StandardException - on error