Package mondrian.rolap
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 Summary
Constructors Constructor Description RolapNativeSql(SqlQuery sqlQuery, AggStar aggStar, Evaluator evaluator, RolapLevel rolapLevel)
Creates a RolapNativeSql.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateFilterCondition(Exp exp)
String
generateTopCountOrderBy(Exp exp)
Generates an aggregate of a measure, e.g.RolapStoredMeasure
getStoredMeasure()
-
-
-
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.
-
getStoredMeasure
public RolapStoredMeasure getStoredMeasure()
-
-