Class SqlFunctionAggregate


  • public class SqlFunctionAggregate
    extends SqlNode
    A simple aggregate function with a name and zero or more arguments. Distinct is also allowed.

    Aggregate functions that are more complex, like GroupConcat, are defined in separate classes.

    • Constructor Detail

      • SqlFunctionAggregate

        public SqlFunctionAggregate​(AggregateFunction function,
                                    List<SqlNode> arguments,
                                    boolean distinct)
        Instantiates a new Sql function aggregate.
        Parameters:
        function - the function
        arguments - the arguments
        distinct - the distinct
    • Method Detail

      • getArguments

        public List<SqlNode> getArguments()
        Gets arguments.
        Returns:
        the arguments
      • getFunction

        public AggregateFunction getFunction()
        Gets function.
        Returns:
        the function
      • getFunctionName

        public String getFunctionName()
        Gets function name.
        Returns:
        the function name
      • hasDistinct

        public boolean hasDistinct()
        Has distinct boolean.
        Returns:
        the boolean