Package mondrian.rolap
Class RolapNativeSql
java.lang.Object
mondrian.rolap.RolapNativeSql
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
ConstructorDescriptionRolapNativeSql
(SqlQuery sqlQuery, AggStar aggStar, Evaluator evaluator, RolapLevel rolapLevel) Creates a RolapNativeSql. -
Method Summary
Modifier and TypeMethodDescriptionGenerates an aggregate of a measure, e.g.
-
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
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
-
getStoredMeasure
-