|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.ArrayMemberSource
abstract class ArrayMemberSource
ArrayMemberSource implements a flat, static hierarchy. There is
no root member, and all members are siblings.
| Field Summary | |
|---|---|
protected RolapHierarchy |
hierarchy
|
protected List<RolapMember> |
members
|
| Constructor Summary | |
|---|---|
ArrayMemberSource(RolapHierarchy hierarchy,
List<RolapMember> members)
|
|
| Method Summary | |
|---|---|
RolapHierarchy |
getHierarchy()
Returns the hierarchy that this source is reading for. |
void |
getMemberChildren(List<RolapMember> parentMembers,
List<RolapMember> children)
Returns all members which are a child of one of the members in parentMembers, sorted by ordinal. |
void |
getMemberChildren(RolapMember parentMember,
List<RolapMember> children)
Writes all children parentMember to children. |
int |
getMemberCount()
Returns an estimate of number of members in this hierarchy. |
List<RolapMember> |
getMembers()
Returns all members of this hierarchy, sorted by ordinal. |
List<RolapMember> |
getRootMembers()
Returns all members of this hierarchy which do not have a parent, sorted by ordinal. |
RolapMember |
lookupMember(List<Id.Segment> uniqueNameParts,
boolean failIfNotFound)
Finds a member based upon its unique name. |
boolean |
setCache(MemberCache cache)
Sets the cache which this MemberSource will write to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final RolapHierarchy hierarchy
protected final List<RolapMember> members
| Constructor Detail |
|---|
ArrayMemberSource(RolapHierarchy hierarchy,
List<RolapMember> members)
| Method Detail |
|---|
public RolapHierarchy getHierarchy()
MemberSource
getHierarchy in interface MemberSourcepublic boolean setCache(MemberCache cache)
MemberSourceMemberSource will write to.
Cache-writeback is optional (for example, SqlMemberSource
supports it, and ArrayMemberSource does not), and the return
value from this method indicates whether this object supports it.
If this method returns true, the MemberSource.getMembers(),
MemberSource.getRootMembers() and MemberSource.getMemberChildren(mondrian.rolap.RolapMember, java.util.List methods must
write to the cache, in addition to returning members as a return value.
setCache in interface MemberSourcecache - The MemberCache which the caller would like
this MemberSource to write to.
MemberSource supports cache-writeback.public List<RolapMember> getMembers()
MemberSourceIf this object supports cache-writeaback, also
writes these members to the cache.
getMembers in interface MemberSourcepublic int getMemberCount()
MemberSource
getMemberCount in interface MemberSourcepublic List<RolapMember> getRootMembers()
MemberSourceIf this object supports cache-writeback, also
writes these members to the cache.
getRootMembers in interface MemberSourceList of RolapMembers
public void getMemberChildren(RolapMember parentMember,
List<RolapMember> children)
MemberSourceparentMember to children.
If this object supports cache-writeback, also
writes these members to the cache.
getMemberChildren in interface MemberSource
public void getMemberChildren(List<RolapMember> parentMembers,
List<RolapMember> children)
MemberSourceparentMembers, sorted by ordinal.
If this object supports cache-writeaback, also
writes these members to the cache.
getMemberChildren in interface MemberSource
public RolapMember lookupMember(List<Id.Segment> uniqueNameParts,
boolean failIfNotFound)
MemberSource
lookupMember in interface MemberSource
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||