|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.RolapAggregationManager
public abstract class RolapAggregationManager
RolapAggregationManager manages all Aggregations in the system. It is a singleton class.
The bits of the implementation which depend upon dimensional concepts
RolapMember, etc.) live in this class, and the other bits live
in the derived class, AggregationManager.
| Nested Class Summary | |
|---|---|
static interface |
RolapAggregationManager.PinSet
A set of segments which are pinned (prevented from garbage collection) for a short duration as a result of a cache inquiry. |
| Constructor Summary | |
|---|---|
protected |
RolapAggregationManager()
Creates the RolapAggregationManager. |
| Method Summary | |
|---|---|
abstract RolapAggregationManager.PinSet |
createPinSet()
Creates a RolapAggregationManager.PinSet. |
CellReader |
getCacheCellReader()
Returns a CellReader which reads cells from cache. |
CacheControl |
getCacheControl(java.io.PrintWriter pw)
Returns an API with which to explicitly manage the contents of the cache. |
abstract java.lang.Object |
getCellFromCache(CellRequest request)
Retrieves the value of a cell from the cache. |
abstract java.lang.Object |
getCellFromCache(CellRequest request,
RolapAggregationManager.PinSet pinSet)
|
abstract java.lang.String |
getDrillThroughSql(CellRequest request,
boolean countOnly)
Generates a SQL statement which will return the rows which contribute to this request. |
static RolapCacheRegion |
makeCacheRegion(RolapStar star,
CacheControl.CellRegion region)
|
static CellRequest |
makeDrillThroughRequest(Member[] members,
boolean extendedContext,
RolapCube cube)
Creates a request for the fact-table rows underlying the cell identified by members. |
static CellRequest |
makeRequest(Member[] members)
Creates a request to evaluate the cell identified by members. |
static CellRequest |
makeRequest(RolapEvaluator evaluator)
Creates a request to evaluate the cell identified by the context specified in evaluator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RolapAggregationManager()
| Method Detail |
|---|
public static CellRequest makeRequest(Member[] members)
members.
If any of the members is the null member, returns null, since there is no cell. If the measure is calculated, returns null.
members - Set of members which constrain the cell
public static CellRequest makeDrillThroughRequest(Member[] members,
boolean extendedContext,
RolapCube cube)
members.
If any of the members is the null member, returns null, since there is no cell. If the measure is calculated, returns null.
members - Set of members which constrain the cellextendedContext - If true, add non-constraining columns to the
query for levels below each current member.
This additional context makes the drill-through
queries easier for humans to understand.cube - Cube
public static CellRequest makeRequest(RolapEvaluator evaluator)
evaluator.
If any of the members from the context is the null member, returns null, since there is no cell. If the measure is calculated, returns null.
evaluator - the cell specified by the evaluator context
public abstract java.lang.Object getCellFromCache(CellRequest request)
request - Cell request
Util.nullValue if cell's value is null
public abstract java.lang.Object getCellFromCache(CellRequest request,
RolapAggregationManager.PinSet pinSet)
public abstract java.lang.String getDrillThroughSql(CellRequest request,
boolean countOnly)
request - Cell requestcountOnly - If true, return a statment which returns only the count
public CacheControl getCacheControl(java.io.PrintWriter pw)
pw - Print writer, for tracing
public static RolapCacheRegion makeCacheRegion(RolapStar star,
CacheControl.CellRegion region)
public CellReader getCacheCellReader()
CellReader which reads cells from cache.
public abstract RolapAggregationManager.PinSet createPinSet()
RolapAggregationManager.PinSet.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||