mondrian.rolap
Interface RolapCubeLevel.LevelReader

All Known Implementing Classes:
RolapCubeLevel.AllLevelReaderImpl, RolapCubeLevel.NullLevelReader, RolapCubeLevel.ParentChildLevelReaderImpl, RolapCubeLevel.RegularLevelReader
Enclosing class:
RolapCubeLevel

static interface RolapCubeLevel.LevelReader

Encapsulation of the difference between levels in terms of how constraints are generated. There are implementations for 'all' levels, the 'null' level, parent-child levels and regular levels.

 

Method Summary
 void constrainRegion(StarColumnPredicate predicate, RolapCube baseCube, RolapCacheRegion cacheRegion)
          Adds constraints to a cache region for a member of this level.
 boolean constrainRequest(RolapCubeMember member, RolapCube baseCube, CellRequest request)
          Adds constraints to a cell request for a member of this level.
 

Method Detail

constrainRequest

boolean constrainRequest(RolapCubeMember member,
                         RolapCube baseCube,
                         CellRequest request)
Adds constraints to a cell request for a member of this level.

Parameters:
member - Member to be constrained
baseCube - base cube if virtual level
request - Request to be constrained
Returns:
true if request is unsatisfiable (e.g. if the member is the null member)

constrainRegion

void constrainRegion(StarColumnPredicate predicate,
                     RolapCube baseCube,
                     RolapCacheRegion cacheRegion)
Adds constraints to a cache region for a member of this level.

Parameters:
predicate - Predicate
baseCube - base cube if virtual level
cacheRegion - Cache region to be constrained

SourceForge.net_Logo