mondrian.rolap.agg
Class AggQuerySpec

java.lang.Object
  extended by 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
 

Constructor Summary
AggQuerySpec(AggStar aggStar, boolean rollup, GroupingSetsList groupingSetsList)
           
 
Method Summary
protected  void addMeasure(int i, SqlQuery query)
           
protected  void generateSql(SqlQuery sqlQuery)
           
 String generateSqlQuery()
           
 AggStar.Table.Column getColumn(int i)
           
 String getColumnAlias(int i)
           
 int getColumnCount()
           
 String getMeasureAlias(int i)
           
 AggStar.Table.Column getMeasureAsColumn(int i)
           
 int getMeasureCount()
           
 StarColumnPredicate getPredicate(int i)
          Returns the predicate on the ith column.
 RolapStar getStar()
           
protected  SqlQuery newSqlQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggQuerySpec

AggQuerySpec(AggStar aggStar,
             boolean rollup,
             GroupingSetsList groupingSetsList)
Method Detail

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 ith 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)

SourceForge.net_Logo