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
ith 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, nonDistinctGenerateSqlSegmentArrayQuerySpec(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)
QuerySpecith column.
If the column is unconstrained, returns
LiteralStarPredicate(true).
i - Column ordinalprotected List<StarPredicate> getPredicateList()
AbstractQuerySpecgetPredicateList in class AbstractQuerySpecprotected void addGroupingFunction(SqlQuery sqlQuery)
addGroupingFunction in class AbstractQuerySpecprotected void addGroupingSets(SqlQuery sqlQuery, Map<String,String> groupingSetsAliases)
addGroupingSets in class AbstractQuerySpecprotected boolean isAggregate()
isAggregate in class AbstractQuerySpec