Package mondrian.rolap
Class MemberCacheHelper
java.lang.Object
mondrian.rolap.MemberCacheHelper
- Direct Known Subclasses:
MemberNoCacheHelper
Encapsulation of member caching.
- Author:
- Will Gorman
-
Constructor Summary
ConstructorDescriptionMemberCacheHelper
(RolapHierarchy rolapHierarchy) Creates a MemberCacheHelper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getChildrenFromCache
(RolapMember member, MemberChildrenConstraint constraint) getLevelMembersFromCache
(RolapLevel level, TupleConstraint constraint) boolean
makeKey
(RolapMember parent, Object key) void
putChildren
(RolapLevel level, TupleConstraint constraint, List<RolapMember> members) void
putChildren
(RolapMember member, MemberChildrenConstraint constraint, List<RolapMember> children) void
putLevelMembersInCache
(RolapLevel level, TupleConstraint constraint, List<RolapMember> members) Deprecated.putMember
(Object key, RolapMember value) removeMember
(Object key) void
setChangeListener
(DataSourceChangeListener listener)
-
Constructor Details
-
MemberCacheHelper
Creates a MemberCacheHelper.- Parameters:
rolapHierarchy
- Hierarchy
-
-
Method Details
-
getMember
-
putMember
-
makeKey
-
getMember
-
checkCacheStatus
public void checkCacheStatus() -
putLevelMembersInCache
@Deprecated public void putLevelMembersInCache(RolapLevel level, TupleConstraint constraint, List<RolapMember> members) Deprecated.Deprecated in favor ofputChildren(RolapLevel, TupleConstraint, List)
-
putChildren
-
getChildrenFromCache
public List<RolapMember> getChildrenFromCache(RolapMember member, MemberChildrenConstraint constraint) -
putChildren
public void putChildren(RolapMember member, MemberChildrenConstraint constraint, List<RolapMember> children) -
getLevelMembersFromCache
-
flushCache
public void flushCache() -
getChangeListener
-
setChangeListener
-
isMutable
public boolean isMutable() -
removeMember
-
removeMemberAndDescendants
-