mondrian.rolap.agg
Class DrillThroughQuerySpec
java.lang.Object
mondrian.rolap.agg.AbstractQuerySpec
mondrian.rolap.agg.DrillThroughQuerySpec
- All Implemented Interfaces:
- QuerySpec
class DrillThroughQuerySpec
- extends AbstractQuerySpec
Provides the information necessary to generate SQL for a drill-through
request.
- Author:
- jhyde, Richard M. Emberson
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrillThroughQuerySpec
public DrillThroughQuerySpec(CellRequest request,
boolean countOnly)
getMeasureCount
public int getMeasureCount()
getMeasure
public RolapStar.Measure getMeasure(int i)
getMeasureAlias
public String getMeasureAlias(int i)
getColumns
public RolapStar.Column[] getColumns()
getColumnAlias
public String getColumnAlias(int i)
getColumnPredicate
public StarColumnPredicate getColumnPredicate(int i)
- Description copied from interface:
QuerySpec
- 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()
- Specified by:
generateSqlQuery
in interface QuerySpec
- Overrides:
generateSqlQuery
in class AbstractQuerySpec
addMeasure
protected void addMeasure(int i,
SqlQuery sqlQuery)
- Description copied from class:
AbstractQuerySpec
- Adds a measure to a query.
- Overrides:
addMeasure
in class AbstractQuerySpec
- Parameters:
i
- Ordinal of measuresqlQuery
- Query object
isAggregate
protected boolean isAggregate()
- Specified by:
isAggregate
in class AbstractQuerySpec
isOrdered
protected boolean isOrdered()
- Description copied from class:
AbstractQuerySpec
- Whether to add an ORDER BY clause to make results deterministic.
Necessary if query returns more than one row and results are for
human consumption.
- Overrides:
isOrdered
in class AbstractQuerySpec
- Returns:
- whether to sort query