public class GroupByClause extends Object implements Serializable
Constructor and Description |
---|
GroupByClause()
Ctor - for use to create an expression tree, without child expression.
|
GroupByClause(Expression... expressions)
Ctor.
|
GroupByClause(List<GroupByClauseExpression> groupByExpressions)
Ctor.
|
GroupByClause(String... properties)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static 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 |
create(String... properties)
Creates a group-by clause from property names.
|
List<GroupByClauseExpression> |
getGroupByExpressions()
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.
|
public GroupByClause(List<GroupByClauseExpression> groupByExpressions)
groupByExpressions
- expression listpublic GroupByClause()
Use add methods to add child expressions to acts upon.
public GroupByClause(String... properties)
properties
- is a list of property namespublic GroupByClause(Expression... expressions)
expressions
- list of expressionspublic static GroupByClause create()
public static GroupByClause create(String... properties)
properties
- a list of one or more property namespublic static GroupByClause create(Expression... expressions)
expressions
- a list of one or more expressionspublic List<GroupByClauseExpression> getGroupByExpressions()
public void setGroupByExpressions(List<GroupByClauseExpression> groupByExpressions)
groupByExpressions
- is the expressions providing the grouped-by valuespublic void toEPL(StringWriter writer)
writer
- to output to