com.espertech.esper.client.soda
Class GroupByClause

java.lang.Object
  extended by com.espertech.esper.client.soda.GroupByClause
All Implemented Interfaces:
java.io.Serializable

public class GroupByClause
extends java.lang.Object
implements java.io.Serializable

The group-by clause consists of a list of expressions that provide the grouped-by values.

See Also:
Serialized Form

Constructor Summary
GroupByClause()
          Ctor - for use to create an expression tree, without child expression.
GroupByClause(Expression... expressions)
          Ctor.
GroupByClause(java.util.List<GroupByClauseExpression> groupByExpressions)
          Ctor.
GroupByClause(java.lang.String... properties)
          Ctor.
 
Method Summary
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(java.lang.String... properties)
          Creates a group-by clause from property names.
 java.util.List<GroupByClauseExpression> getGroupByExpressions()
          Returns the expressions providing the grouped-by values.
 void setGroupByExpressions(java.util.List<GroupByClauseExpression> groupByExpressions)
          Sets the expressions providing the grouped-by values.
 void toEPL(java.io.StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupByClause

public GroupByClause(java.util.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(java.lang.String... properties)
Ctor.

Parameters:
properties - is a list of property names

GroupByClause

public GroupByClause(Expression... expressions)
Ctor.

Parameters:
expressions - list of expressions
Method Detail

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(java.lang.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 java.util.List<GroupByClauseExpression> getGroupByExpressions()
Returns the expressions providing the grouped-by values.

Returns:
expressions

setGroupByExpressions

public void setGroupByExpressions(java.util.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(java.io.StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com