Class GroupByColumn

  • All Implemented Interfaces:
    Visitable

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

      • columnExpression

        private ValueNode columnExpression
    • Constructor Detail

      • GroupByColumn

        GroupByColumn​(ValueNode colRef,
                      ContextManager cm)
        Constructor.
        Parameters:
        colRef - The ColumnReference for the grouping column
        cm - 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 class QueryTreeNode
        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 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)