mondrian.rolap
Class RolapCubeLevel.ParentChildLevelReaderImpl

java.lang.Object
  extended by mondrian.rolap.RolapCubeLevel.RegularLevelReader
      extended by mondrian.rolap.RolapCubeLevel.ParentChildLevelReaderImpl
All Implemented Interfaces:
RolapCubeLevel.LevelReader
Enclosing class:
RolapCubeLevel

 class RolapCubeLevel.ParentChildLevelReaderImpl
extends RolapCubeLevel.RegularLevelReader

Level reader for a parent-child level which has a closed peer level.

 

Field Summary
protected  RolapCubeLevel closedPeer
          For a parent-child hierarchy with a closure provided by the schema, the equivalent level in the closed hierarchy; otherwise null.
 
Constructor Summary
RolapCubeLevel.ParentChildLevelReaderImpl(RolapCubeLevel closedPeer)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

closedPeer

protected final RolapCubeLevel closedPeer
For a parent-child hierarchy with a closure provided by the schema, the equivalent level in the closed hierarchy; otherwise null.

Constructor Detail

RolapCubeLevel.ParentChildLevelReaderImpl

RolapCubeLevel.ParentChildLevelReaderImpl(RolapCubeLevel closedPeer)
Method Detail

constrainRequest

public boolean constrainRequest(RolapCubeMember member,
                                RolapCube baseCube,
                                CellRequest request)
Description copied from interface: RolapCubeLevel.LevelReader
Adds constraints to a cell request for a member of this level.

Specified by:
constrainRequest in interface RolapCubeLevel.LevelReader
Overrides:
constrainRequest in class RolapCubeLevel.RegularLevelReader
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

public void constrainRegion(StarColumnPredicate predicate,
                            RolapCube baseCube,
                            RolapCacheRegion cacheRegion)
Description copied from interface: RolapCubeLevel.LevelReader
Adds constraints to a cache region for a member of this level.

Specified by:
constrainRegion in interface RolapCubeLevel.LevelReader
Overrides:
constrainRegion in class RolapCubeLevel.RegularLevelReader
Parameters:
predicate - Predicate
baseCube - base cube if virtual level
cacheRegion - Cache region to be constrained

SourceForge.net_Logo