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 void
addGroupingFunction(SqlQuery sqlQuery)
protected void
addGroupingSets(SqlQuery sqlQuery, Map<String,String> groupingSetsAliases)
String
getColumnAlias(int i)
SqlQuery relies on "c" and index.StarColumnPredicate
getColumnPredicate(int i)
Returns the predicate on thei
th column.RolapStar.Column[]
getColumns()
RolapStar.Measure
getMeasure(int i)
String
getMeasureAlias(int i)
int
getMeasureCount()
protected List<StarPredicate>
getPredicateList()
Returns a list of predicates not associated with a particular column.protected boolean
isAggregate()
-
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:QuerySpec
Returns the predicate on thei
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 classAbstractQuerySpec
- Returns:
- list of non-column predicates
-
addGroupingFunction
protected void addGroupingFunction(SqlQuery sqlQuery)
- Overrides:
addGroupingFunction
in classAbstractQuerySpec
-
addGroupingSets
protected void addGroupingSets(SqlQuery sqlQuery, Map<String,String> groupingSetsAliases)
- Overrides:
addGroupingSets
in classAbstractQuerySpec
-
isAggregate
protected boolean isAggregate()
- Specified by:
isAggregate
in classAbstractQuerySpec
-
-