com.espertech.esper.client.soda
Class GroupByClauseExpressionRollupOrCube

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

public class GroupByClauseExpressionRollupOrCube
extends java.lang.Object
implements GroupByClauseExpression

Represents a rollup or cube in a group-by clause.

See Also:
Serialized Form

Constructor Summary
GroupByClauseExpressionRollupOrCube()
          Ctor.
GroupByClauseExpressionRollupOrCube(boolean cube, java.util.List<GroupByClauseExpression> expressions)
          Ctor.
 
Method Summary
 java.util.List<GroupByClauseExpression> getExpressions()
          Returns the rollup or cube group-by expressions.
 boolean isCube()
          Returns true for cube, false for rollup.
 void setCube(boolean cube)
          Set to true for cube, false for rollup.
 void setExpressions(java.util.List<GroupByClauseExpression> expressions)
          Sets the rollup or cube group-by expressions.
 void toEPL(java.io.StringWriter writer)
          Render group by expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupByClauseExpressionRollupOrCube

public GroupByClauseExpressionRollupOrCube(boolean cube,
                                           java.util.List<GroupByClauseExpression> expressions)
Ctor.

Parameters:
cube - true for cube, false for rollup
expressions - group-by expressions as part of rollup or cube

GroupByClauseExpressionRollupOrCube

public GroupByClauseExpressionRollupOrCube()
Ctor.

Method Detail

getExpressions

public java.util.List<GroupByClauseExpression> getExpressions()
Returns the rollup or cube group-by expressions.

Returns:
expressions

setExpressions

public void setExpressions(java.util.List<GroupByClauseExpression> expressions)
Sets the rollup or cube group-by expressions.

Parameters:
expressions - expressions to set

isCube

public boolean isCube()
Returns true for cube, false for rollup.

Returns:
cube

setCube

public void setCube(boolean cube)
Set to true for cube, false for rollup.

Parameters:
cube - cube indicator

toEPL

public void toEPL(java.io.StringWriter writer)
Description copied from interface: GroupByClauseExpression
Render group by expression

Specified by:
toEPL in interface GroupByClauseExpression
Parameters:
writer - to render to

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