mondrian.rolap.agg
Class GroupingSetsList

java.lang.Object
  extended by mondrian.rolap.agg.GroupingSetsList

final class GroupingSetsList
extends Object

Class for using GROUP BY GROUPING SETS sql query.

For example, suppose we have the 3 grouping sets (a, b, c), (a, b) and (b, c).

Since:
24 May 2007
Author:
Thiyagu

Nested Class Summary
(package private) static class GroupingSetsList.Cohort
          Collection of SegmentDataset that have the same dimensionality and identical axis values.
 
Constructor Summary
GroupingSetsList(List<GroupingSet> groupingSets)
          Creates a GroupingSetsList.
 
Method Summary
 int findGroupingFunctionIndex(int columnIndex)
           
 SegmentAxis[] getDefaultAxes()
           
 RolapStar.Column[] getDefaultColumns()
           
protected  GroupingSet getDefaultGroupingSet()
           
 BitKey getDefaultLevelBitKey()
           
 BitKey getDefaultMeasureBitKey()
           
 StarColumnPredicate[] getDefaultPredicates()
           
 List<Segment> getDefaultSegments()
           
 int getGroupingBitKeyIndex()
           
(package private)  List<RolapStar.Column[]> getGroupingColumnsList(List<GroupingSet> groupingSets)
           
 List<GroupingSet> getGroupingSets()
           
 List<RolapStar.Column[]> getGroupingSetsColumns()
           
 List<RolapStar.Column> getRollupColumns()
           
 List<BitKey> getRollupColumnsBitKeyList()
           
 List<GroupingSet> getRollupGroupingSets()
           
 RolapStar getStar()
           
 boolean useGroupingSets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupingSetsList

public GroupingSetsList(List<GroupingSet> groupingSets)
Creates a GroupingSetsList.

First element of the groupingSets list should be the detailed grouping set (default grouping set), followed by grouping sets which can be rolled-up.

Parameters:
groupingSets - List of groups of columns
Method Detail

getGroupingColumnsList

List<RolapStar.Column[]> getGroupingColumnsList(List<GroupingSet> groupingSets)

getGroupingBitKeyIndex

public int getGroupingBitKeyIndex()

getRollupColumns

public List<RolapStar.Column> getRollupColumns()

getGroupingSetsColumns

public List<RolapStar.Column[]> getGroupingSetsColumns()

getRollupColumnsBitKeyList

public List<BitKey> getRollupColumnsBitKeyList()

useGroupingSets

public boolean useGroupingSets()

findGroupingFunctionIndex

public int findGroupingFunctionIndex(int columnIndex)

getDefaultAxes

public SegmentAxis[] getDefaultAxes()

getDefaultPredicates

public StarColumnPredicate[] getDefaultPredicates()

getDefaultGroupingSet

protected GroupingSet getDefaultGroupingSet()

getDefaultColumns

public RolapStar.Column[] getDefaultColumns()

getDefaultSegments

public List<Segment> getDefaultSegments()

getDefaultLevelBitKey

public BitKey getDefaultLevelBitKey()

getDefaultMeasureBitKey

public BitKey getDefaultMeasureBitKey()

getStar

public RolapStar getStar()

getGroupingSets

public List<GroupingSet> getGroupingSets()

getRollupGroupingSets

public List<GroupingSet> getRollupGroupingSets()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads