Class RolapAggregator

    • Constructor Detail

      • RolapAggregator

        protected RolapAggregator​(String name,
                                  int ordinal,
                                  boolean distinct)
    • Method Detail

      • isDistinct

        public boolean isDistinct()
      • getExpression

        public String getExpression​(String operand)
        Returns the expression to apply this aggregator to an operand. For example, getExpression("emp.sal") returns "sum(emp.sal)".
      • getNonDistinctAggregator

        public RolapAggregator getNonDistinctAggregator()
        If this is a distinct aggregator, returns the corresponding non-distinct aggregator, otherwise throws an error.
      • getRollup

        public Aggregator getRollup()
        Returns the aggregator used to roll up. By default, aggregators roll up themselves.
        Specified by:
        getRollup in interface Aggregator
        Returns:
        aggregator used to combine sub-totals into a grand-total
      • supportsFastAggregates

        public boolean supportsFastAggregates​(Dialect.Datatype dataType)
        By default, fast rollup is not supported for all classes.
        Specified by:
        supportsFastAggregates in interface Aggregator
        Parameters:
        dataType - The datatype of the object we would like to rollup.
        Returns:
        Whether this aggregator supports fast aggregation