Class RolapNativeSql

java.lang.Object
mondrian.rolap.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 Details

    • 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 Details

    • 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)
    • getStoredMeasure

      public RolapStoredMeasure getStoredMeasure()