Class GroupByClause

java.lang.Object
com.espertech.esper.common.client.soda.GroupByClause
All Implemented Interfaces:
Serializable

public class GroupByClause extends Object implements Serializable
The group-by clause consists of a list of expressions that provide the grouped-by values.
See Also:
  • Constructor Details

    • GroupByClause

      public GroupByClause(List<GroupByClauseExpression> groupByExpressions)
      Ctor.
      Parameters:
      groupByExpressions - expression list
    • GroupByClause

      public GroupByClause()
      Ctor - for use to create an expression tree, without child expression.

      Use add methods to add child expressions to acts upon.

    • GroupByClause

      public GroupByClause(String... properties)
      Ctor.
      Parameters:
      properties - is a list of property names
    • GroupByClause

      public GroupByClause(Expression... expressions)
      Ctor.
      Parameters:
      expressions - list of expressions
  • Method Details

    • create

      public static GroupByClause create()
      Creates an empty group-by clause, to add to via add methods.
      Returns:
      group-by clause
    • create

      public static GroupByClause create(String... properties)
      Creates a group-by clause from property names.
      Parameters:
      properties - a list of one or more property names
      Returns:
      group-by clause consisting of the properties
    • create

      public static GroupByClause create(Expression... expressions)
      Creates a group-by clause from expressions.
      Parameters:
      expressions - a list of one or more expressions
      Returns:
      group-by clause consisting of the expressions
    • getGroupByExpressions

      public List<GroupByClauseExpression> getGroupByExpressions()
      Returns the expressions providing the grouped-by values.
      Returns:
      expressions
    • setGroupByExpressions

      public void setGroupByExpressions(List<GroupByClauseExpression> groupByExpressions)
      Sets the expressions providing the grouped-by values.
      Parameters:
      groupByExpressions - is the expressions providing the grouped-by values
    • toEPL

      public void toEPL(StringWriter writer)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to