class SegmentArrayQuerySpec extends AbstractQuerySpec
countOnly
Constructor and Description |
---|
SegmentArrayQuerySpec(GroupingSetsList groupingSetsList,
List<StarPredicate> compoundPredicateList)
Creates a SegmentArrayQuerySpec.
|
Modifier and Type | Method and 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 the
i 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() |
addMeasure, distinctGenerateSql, extraPredicates, generateSqlQuery, getDistinctMeasureCount, getStar, isOrdered, isPartOfSelect, isPartOfSelect, newSqlQuery, nonDistinctGenerateSql
SegmentArrayQuerySpec(GroupingSetsList groupingSetsList, List<StarPredicate> compoundPredicateList)
groupingSetsList
- Collection of grouping setscompoundPredicateList
- list of predicates representing the
compound member constraintspublic int getMeasureCount()
public RolapStar.Measure getMeasure(int i)
public String getMeasureAlias(int i)
public RolapStar.Column[] getColumns()
public String getColumnAlias(int i)
public StarColumnPredicate getColumnPredicate(int i)
QuerySpec
i
th column.
If the column is unconstrained, returns
LiteralStarPredicate
(true).
i
- Column ordinalprotected List<StarPredicate> getPredicateList()
AbstractQuerySpec
getPredicateList
in class AbstractQuerySpec
protected void addGroupingFunction(SqlQuery sqlQuery)
addGroupingFunction
in class AbstractQuerySpec
protected void addGroupingSets(SqlQuery sqlQuery, Map<String,String> groupingSetsAliases)
addGroupingSets
in class AbstractQuerySpec
protected boolean isAggregate()
isAggregate
in class AbstractQuerySpec