mondrian.rolap.agg
Class AggQuerySpec
java.lang.Object
mondrian.rolap.agg.AggQuerySpec
class AggQuerySpec
- extends Object
An AggStar's version of the QuerySpec
.
When/if the AggStar
code is merged into RolapStar
(or RolapStar is merged into AggStar}, then this, indeed, can implement the
QuerySpec
interface.
- Author:
- Richard M. Emberson
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggQuerySpec
AggQuerySpec(AggStar aggStar,
boolean rollup,
GroupingSetsList groupingSetsList)
newSqlQuery
protected SqlQuery newSqlQuery()
getStar
public RolapStar getStar()
getMeasureCount
public int getMeasureCount()
getMeasureAsColumn
public AggStar.Table.Column getMeasureAsColumn(int i)
getMeasureAlias
public String getMeasureAlias(int i)
getColumnCount
public int getColumnCount()
getColumn
public AggStar.Table.Column getColumn(int i)
getColumnAlias
public String getColumnAlias(int i)
getPredicate
public StarColumnPredicate getPredicate(int i)
- Returns the predicate on the
i
th column.
If the column is unconstrained, returns
LiteralStarPredicate
(true).
- Parameters:
i
- Column ordinal
- Returns:
- Constraint on column
generateSqlQuery
public String generateSqlQuery()
addMeasure
protected void addMeasure(int i,
SqlQuery query)
generateSql
protected void generateSql(SqlQuery sqlQuery)