Class GroupByClause
java.lang.Object
com.espertech.esper.common.client.soda.GroupByClause
- All Implemented Interfaces:
Serializable
The group-by clause consists of a list of expressions that provide the grouped-by values.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor - for use to create an expression tree, without child expression.GroupByClause
(Expression... expressions) Ctor.GroupByClause
(String... properties) Ctor.GroupByClause
(List<GroupByClauseExpression> groupByExpressions) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupByClause
create()
Creates an empty group-by clause, to add to via add methods.static GroupByClause
create
(Expression... expressions) Creates a group-by clause from expressions.static GroupByClause
Creates a group-by clause from property names.Returns the expressions providing the grouped-by values.void
setGroupByExpressions
(List<GroupByClauseExpression> groupByExpressions) Sets the expressions providing the grouped-by values.void
toEPL
(StringWriter writer) Renders the clause in textual representation.
-
Constructor Details
-
GroupByClause
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
Ctor.- Parameters:
properties
- is a list of property names
-
GroupByClause
Ctor.- Parameters:
expressions
- list of expressions
-
-
Method Details
-
create
Creates an empty group-by clause, to add to via add methods.- Returns:
- group-by clause
-
create
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
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
Returns the expressions providing the grouped-by values.- Returns:
- expressions
-
setGroupByExpressions
Sets the expressions providing the grouped-by values.- Parameters:
groupByExpressions
- is the expressions providing the grouped-by values
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output to
-