mondrian.rolap.agg
Class GroupingSetsList

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

 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
 

Constructor Summary
GroupingSetsList(List<GroupingSet> groupingSets)
          Creates a GroupingSetsList.
 
Method Summary
 int findGroupingFunctionIndex(int columnIndex)
           
 Aggregation.Axis[] getDefaultAxes()
           
 RolapStar.Column[] getDefaultColumns()
           
protected  GroupingSet getDefaultGroupingSet()
           
 BitKey getDefaultLevelBitKey()
           
 BitKey getDefaultMeasureBitKey()
           
 Segment[] getDefaultSegments()
           
 BitKey getDetailedColumnsBitKey()
           
(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)

getRollupColumns

public List<RolapStar.Column> getRollupColumns()

getGroupingSetsColumns

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

getRollupColumnsBitKeyList

public List<BitKey> getRollupColumnsBitKeyList()

getDetailedColumnsBitKey

public BitKey getDetailedColumnsBitKey()

useGroupingSets

public boolean useGroupingSets()

findGroupingFunctionIndex

public int findGroupingFunctionIndex(int columnIndex)

getDefaultAxes

public Aggregation.Axis[] getDefaultAxes()

getDefaultGroupingSet

protected GroupingSet getDefaultGroupingSet()

getDefaultColumns

public RolapStar.Column[] getDefaultColumns()

getDefaultSegments

public Segment[] getDefaultSegments()

getDefaultLevelBitKey

public BitKey getDefaultLevelBitKey()

getDefaultMeasureBitKey

public BitKey getDefaultMeasureBitKey()

getStar

public RolapStar getStar()

getGroupingSets

public List<GroupingSet> getGroupingSets()

getRollupGroupingSets

public List<GroupingSet> getRollupGroupingSets()

SourceForge.net_Logo