|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.RolapAggregationManager mondrian.rolap.agg.AggregationManager
public class AggregationManager
RolapAggregationManager
manages all Aggregation
s
in the system. It is a singleton class.
Nested Class Summary | |
---|---|
static class |
AggregationManager.PinSetImpl
Implementation of RolapAggregationManager.PinSet
using a HashSet . |
Nested classes/interfaces inherited from class mondrian.rolap.RolapAggregationManager |
---|
RolapAggregationManager.PinSet |
Constructor Summary | |
---|---|
AggregationManager()
|
Method Summary | |
---|---|
RolapAggregationManager.PinSet |
createPinSet()
Creates a RolapAggregationManager.PinSet . |
AggStar |
findAgg(RolapStar star,
BitKey levelBitKey,
BitKey measureBitKey,
boolean[] rollup)
Finds an aggregate table in the given star which has the desired levels and measures. |
String |
generateSql(GroupingSetsList groupingSetsList,
List<StarPredicate> compoundPredicateList)
Generates the query to retrieve the cells for a list of segments. |
Object |
getCellFromCache(CellRequest request)
Retrieves the value of a cell from the cache. |
Object |
getCellFromCache(CellRequest request,
RolapAggregationManager.PinSet pinSet)
|
String |
getDrillThroughSql(CellRequest request,
boolean countOnly)
Generates a SQL statement which will return the rows which contribute to this request. |
org.apache.log4j.Logger |
getLogger()
|
static AggregationManager |
instance()
Returns or creates the singleton. |
void |
loadAggregation(RolapStar.Measure[] measures,
RolapStar.Column[] columns,
AggregationKey aggregationKey,
StarColumnPredicate[] predicates,
RolapAggregationManager.PinSet pinnedSegments,
GroupingSetsCollector groupingSetsCollector)
Called by FastBatchingCellReader.loadAggregation where the RolapStar creates an Aggregation if needed. |
Methods inherited from class mondrian.rolap.RolapAggregationManager |
---|
getCacheCellReader, getCacheControl, makeCacheRegion, makeDrillThroughRequest, makeRequest, makeRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
AggregationManager()
Method Detail |
---|
public static AggregationManager instance()
public org.apache.log4j.Logger getLogger()
public void loadAggregation(RolapStar.Measure[] measures, RolapStar.Column[] columns, AggregationKey aggregationKey, StarColumnPredicate[] predicates, RolapAggregationManager.PinSet pinnedSegments, GroupingSetsCollector groupingSetsCollector)
measures
- Measures to loadcolumns
- this is the CellRequest's constrained columnsaggregationKey
- this is the CellRequest's constraint keypredicates
- Array of constraints on each columnpinnedSegments
- Set of pinned segmentsgroupingSetsCollector
- grouping sets collectorpublic Object getCellFromCache(CellRequest request)
RolapAggregationManager
getCellFromCache
in class RolapAggregationManager
request
- Cell request
Util.nullValue
if cell's value is nullpublic Object getCellFromCache(CellRequest request, RolapAggregationManager.PinSet pinSet)
getCellFromCache
in class RolapAggregationManager
public String getDrillThroughSql(CellRequest request, boolean countOnly)
RolapAggregationManager
getDrillThroughSql
in class RolapAggregationManager
request
- Cell requestcountOnly
- If true, return a statment which returns only the count
public String generateSql(GroupingSetsList groupingSetsList, List<StarPredicate> compoundPredicateList)
public AggStar findAgg(RolapStar star, BitKey levelBitKey, BitKey measureBitKey, boolean[] rollup)
If there no aggregate is an exact match, returns a more granular aggregate which can be rolled up, and sets rollup to true. If one or more of the measures are distinct-count measures rollup is possible only in limited circumstances.
star
- StarlevelBitKey
- Set of levelsmeasureBitKey
- Set of measuresrollup
- Out parameter, is set to true if the aggregate is not
an exact match
public RolapAggregationManager.PinSet createPinSet()
RolapAggregationManager
RolapAggregationManager.PinSet
.
createPinSet
in class RolapAggregationManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |