com.espertech.esper.client.soda
Class GroupByClause

java.lang.Object
  extended by com.espertech.esper.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:
Serialized Form

Constructor Summary
GroupByClause()
          Ctor - for use to create an expression tree, without child expression.
GroupByClause(Expression... expressions)
          Ctor.
GroupByClause(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(String... properties)
          Creates a group-by clause from property names.
 List<Expression> getGroupByExpressions()
          Returns the expressions providing the grouped-by values.
 void setGroupByExpressions(List<Expression> groupByExpressions)
          Sets the expressions providing the grouped-by values.
 void toEPL(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()
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 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(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<Expression> getGroupByExpressions()
Returns the expressions providing the grouped-by values.

Returns:
expressions

setGroupByExpressions

public void setGroupByExpressions(List<Expression> 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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com