Package 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
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.agg.AbstractQuerySpec
countOnly
-
-
Constructor Summary
Constructors Constructor Description SegmentArrayQuerySpec(GroupingSetsList groupingSetsList, List<StarPredicate> compoundPredicateList)Creates a SegmentArrayQuerySpec.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddGroupingFunction(SqlQuery sqlQuery)protected voidaddGroupingSets(SqlQuery sqlQuery, Map<String,String> groupingSetsAliases)StringgetColumnAlias(int i)SqlQuery relies on "c" and index.StarColumnPredicategetColumnPredicate(int i)Returns the predicate on theith column.RolapStar.Column[]getColumns()RolapStar.MeasuregetMeasure(int i)StringgetMeasureAlias(int i)intgetMeasureCount()protected List<StarPredicate>getPredicateList()Returns a list of predicates not associated with a particular column.protected booleanisAggregate()-
Methods inherited from class mondrian.rolap.agg.AbstractQuerySpec
addMeasure, distinctGenerateSql, extraPredicates, generateSqlQuery, getDistinctMeasureCount, getStar, isOrdered, isPartOfSelect, isPartOfSelect, newSqlQuery, nonDistinctGenerateSql
-
-
-
-
Constructor Detail
-
SegmentArrayQuerySpec
SegmentArrayQuerySpec(GroupingSetsList groupingSetsList, List<StarPredicate> compoundPredicateList)
Creates a SegmentArrayQuerySpec.- Parameters:
groupingSetsList- Collection of grouping setscompoundPredicateList- list of predicates representing the compound member constraints
-
-
Method Detail
-
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!
-
getColumnPredicate
public StarColumnPredicate getColumnPredicate(int i)
Description copied from interface:QuerySpecReturns the predicate on theith 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:AbstractQuerySpecReturns a list of predicates not associated with a particular column.- Overrides:
getPredicateListin classAbstractQuerySpec- Returns:
- list of non-column predicates
-
addGroupingFunction
protected void addGroupingFunction(SqlQuery sqlQuery)
- Overrides:
addGroupingFunctionin classAbstractQuerySpec
-
addGroupingSets
protected void addGroupingSets(SqlQuery sqlQuery, Map<String,String> groupingSetsAliases)
- Overrides:
addGroupingSetsin classAbstractQuerySpec
-
isAggregate
protected boolean isAggregate()
- Specified by:
isAggregatein classAbstractQuerySpec
-
-