Class GridSqlAggregateFunction

    • Constructor Detail

      • GridSqlAggregateFunction

        public GridSqlAggregateFunction​(boolean distinct,
                                        GridSqlFunctionType type)
        Parameters:
        distinct - Distinct.
        type - Type.
      • GridSqlAggregateFunction

        public GridSqlAggregateFunction​(boolean distinct,
                                        org.h2.expression.Aggregate.AggregateType type)
        Parameters:
        distinct - Distinct.
        type - Type.
    • Method Detail

      • isValidType

        protected static boolean isValidType​(org.h2.expression.Aggregate.AggregateType type)
        Checks if the aggregate type is valid.
        Parameters:
        type - Aggregate type.
        Returns:
        True is valid, otherwise false.
      • distinct

        public boolean distinct()
        Returns:
        Distinct.
      • setGroupConcatOrder

        public GridSqlAggregateFunction setGroupConcatOrder​(GridSqlElement[] orderExpression,
                                                            boolean[] orderDesc)
        Parameters:
        orderExpression - Order expression.
        orderDesc - Order descending flag.
        Returns:
        this for chaining.
      • hasGroupConcatOrder

        public boolean hasGroupConcatOrder()
        Returns:
        true in case GROUP_CONCAT function contains ORDER BY expressions.
      • getGroupConcatSeparator

        public GridSqlElement getGroupConcatSeparator()
        Returns:
        Separator expression.