Class GroupByClauseExpressionRollupOrCube

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

public class GroupByClauseExpressionRollupOrCube extends Object implements GroupByClauseExpression
Represents a rollup or cube in a group-by clause.
See Also:
  • Constructor Details

    • GroupByClauseExpressionRollupOrCube

      public GroupByClauseExpressionRollupOrCube(boolean cube, 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 Details

    • getExpressions

      public List<GroupByClauseExpression> getExpressions()
      Returns the rollup or cube group-by expressions.
      Returns:
      expressions
    • setExpressions

      public void setExpressions(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(StringWriter writer)
      Description copied from interface: GroupByClauseExpression
      Render group by expression
      Specified by:
      toEPL in interface GroupByClauseExpression
      Parameters:
      writer - to render to