Class AggregateArgs.GroupBy

    • Constructor Detail

      • GroupBy

        public GroupBy()
    • Method Detail

      • addProperty

        public AggregateArgs.GroupBy addProperty​(String property)
        Adds a property to the GROUPBY clause.
        Parameters:
        property - the property
        Returns:
        the current GroupBy
      • addReduceFunction

        public AggregateArgs.GroupBy addReduceFunction​(String function,
                                                       String alias,
                                                       Object... args)
        Adds a reduce function to the GROUPBY clause.
        Parameters:
        function - the name of the function
        alias - the alias used in the returned document
        args - the arguments
        Returns:
        the current GroupBy
      • addReduceFunction

        public AggregateArgs.GroupBy addReduceFunction​(String function,
                                                       Object... args)
        Adds a reduce function to the GROUPBY clause.
        Parameters:
        function - the name of the function
        args - the arguments
        Returns:
        the current GroupBy