Class GroupByClauseExpressionRollupOrCube
java.lang.Object
com.espertech.esper.common.client.soda.GroupByClauseExpressionRollupOrCube
- All Implemented Interfaces:
GroupByClauseExpression
,Serializable
Represents a rollup or cube in a group-by clause.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.GroupByClauseExpressionRollupOrCube
(boolean cube, List<GroupByClauseExpression> expressions) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
(List<GroupByClauseExpression> expressions) Sets the rollup or cube group-by expressions.void
toEPL
(StringWriter writer) Render group by expression
-
Constructor Details
-
GroupByClauseExpressionRollupOrCube
Ctor.- Parameters:
cube
- true for cube, false for rollupexpressions
- group-by expressions as part of rollup or cube
-
GroupByClauseExpressionRollupOrCube
public GroupByClauseExpressionRollupOrCube()Ctor.
-
-
Method Details
-
getExpressions
Returns the rollup or cube group-by expressions.- Returns:
- expressions
-
setExpressions
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
Description copied from interface:GroupByClauseExpression
Render group by expression- Specified by:
toEPL
in interfaceGroupByClauseExpression
- Parameters:
writer
- to render to
-