mondrian.rolap.agg
Class SegmentArrayQuerySpec
java.lang.Object
mondrian.rolap.agg.AbstractQuerySpec
mondrian.rolap.agg.SegmentArrayQuerySpec
- All Implemented Interfaces:
- QuerySpec
class SegmentArrayQuerySpec
- extends AbstractQuerySpec
Provides the information necessary to generate a SQL statement to
retrieve a list of segments.
- Author:
- jhyde, Richard M. Emberson
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SegmentArrayQuerySpec
SegmentArrayQuerySpec(GroupingSetsList groupingSetsList,
List<StarPredicate> compoundPredicateList)
- Creates a SegmentArrayQuerySpec.
- Parameters:
groupingSetsList
- Collection of grouping setscompoundPredicateList
- list of predicates representing the
compound member constraints
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)
- SqlQuery relies on "c" and index. All this should go into SqlQuery!
- See Also:
SqlQuery.addOrderBy(java.lang.String, boolean, boolean, boolean)
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
getPredicateList
protected List<StarPredicate> getPredicateList()
- Description copied from class:
AbstractQuerySpec
- Returns a list of predicates not associated with a particular column.
- Overrides:
getPredicateList
in class AbstractQuerySpec
- Returns:
- list of non-column predicates
addGroupingFunction
protected void addGroupingFunction(SqlQuery sqlQuery)
- Overrides:
addGroupingFunction
in class AbstractQuerySpec
addGroupingSets
protected void addGroupingSets(SqlQuery sqlQuery)
- Overrides:
addGroupingSets
in class AbstractQuerySpec
isAggregate
protected boolean isAggregate()
- Specified by:
isAggregate
in class AbstractQuerySpec