mondrian.rolap.agg
Class SegmentArrayQuerySpec

java.lang.Object
  extended by mondrian.rolap.agg.AbstractQuerySpec
      extended by 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.

Version:
$Id: //open/mondrian-release/3.0/src/main/mondrian/rolap/agg/SegmentArrayQuerySpec.java#3 $
Author:
jhyde, Richard M. Emberson

Field Summary
 
Fields inherited from class mondrian.rolap.agg.AbstractQuerySpec
countOnly
 
Constructor Summary
SegmentArrayQuerySpec(GroupingSetsList groupingSetsList, List<StarPredicate> compoundPredicateList)
          Creates a SegmentArrayQuerySpec.
 
Method Summary
protected  void addGroupingFunction(SqlQuery sqlQuery)
           
protected  void addGroupingSets(SqlQuery sqlQuery)
           
 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()
           
 
Methods inherited from class mondrian.rolap.agg.AbstractQuerySpec
addMeasure, distinctGenerateSql, extraPredicates, generateSqlQuery, getDistinctMeasureCount, getStar, isOrdered, newSqlQuery, nonDistinctGenerateSql
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentArrayQuerySpec

SegmentArrayQuerySpec(GroupingSetsList groupingSetsList,
                      List<StarPredicate> compoundPredicateList)
Creates a SegmentArrayQuerySpec.

Parameters:
groupingSetsList - Collection of grouping sets
compoundPredicateList - 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!

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 ith 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

SourceForge.net_Logo