Class AggregateFunction

    • Constructor Detail

      • AggregateFunction

        public AggregateFunction​(String aggName,
                                 boolean isDistinct,
                                 List<? extends Expression> params,
                                 Class<?> type)
    • Method Detail

      • getName

        public String getName()
        Get the name of the aggregate function. This will be one of the constants defined in this class.
        Overrides:
        getName in class Function
        Returns:
        Function name
      • isDistinct

        public boolean isDistinct()
        Determine whether this function was executed with DISTINCT. Executing with DISTINCT will remove all duplicate values in a group when evaluating the aggregate function.
        Returns:
        True if DISTINCT mode is used
      • getExpression

        public Expression getExpression()
        Deprecated.
        Get the expression within the aggregate function. The expression will be null for the special case COUNT(*). This is the only case where the expression will be null Only valid for 0/1 ary aggregates
        Returns:
        The expression or null for COUNT(*)
      • setName

        public void setName​(String name)
        Set the name of the aggregate function. This will be one of the constants defined in this class.
        Overrides:
        setName in class Function
        Parameters:
        name - New aggregate function name
      • setDistinct

        public void setDistinct​(boolean isDistinct)
        Set whether this function was executed with DISTINCT. Executing with DISTINCT will remove all duplicate values in a group when evaluating the aggregate function.
        Parameters:
        isDistinct - True if DISTINCT mode should be used
      • getCondition

        public Expression getCondition()
        Returns:
        the filter clause condition
      • setCondition

        public void setCondition​(Expression condition)
      • getOrderBy

        public OrderBy getOrderBy()
      • setOrderBy

        public void setOrderBy​(OrderBy orderBy)