Class RolapNativeSql


  • public class RolapNativeSql
    extends Object
    Creates SQL from parse tree nodes. Currently it creates the SQL that accesses a measure for the ORDER BY that is generated for a TopCount.

    Since:
    Nov 17, 2005
    Author:
    av
    • Constructor Detail

      • RolapNativeSql

        public RolapNativeSql​(SqlQuery sqlQuery,
                              AggStar aggStar,
                              Evaluator evaluator,
                              RolapLevel rolapLevel)
        Creates a RolapNativeSql.
        Parameters:
        sqlQuery - the query which is needed for different SQL dialects - it is not modified
    • Method Detail

      • generateTopCountOrderBy

        public String generateTopCountOrderBy​(Exp exp)
        Generates an aggregate of a measure, e.g. "sum(Store_Sales)" for TopCount. The returned expr will be added to the select list and to the order by clause.
      • generateFilterCondition

        public String generateFilterCondition​(Exp exp)