rolapmember.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 1,161 行 · 第 1/4 页
HTML
1,161 行
</TABLE><A NAME="getAllMembers(mondrian.olap.SchemaReader, mondrian.olap.Hierarchy)"><!-- --></A><H3>getAllMembers</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[]> <B>getAllMembers</B>(<A HREF="../../mondrian/olap/SchemaReader.html" title="interface in mondrian.olap">SchemaReader</A> schemaReader, <A HREF="../../mondrian/olap/Hierarchy.html" title="interface in mondrian.olap">Hierarchy</A> hierarchy)</PRE><DL><DD>This returns an array of member arrays where the first member array are the root members while the last member array are the leaf members. <p> If you know that you will need to get all or most of the members of a hierarchy, then calling this which gets all of the hierarchy's members all at once is much faster than getting members one at a time.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>schemaReader</CODE> - Schema reader<DD><CODE>hierarchy</CODE> - Hierarchy<DT><B>Returns:</B><DD>List of arrays of members</DL></DD></DL><HR><A NAME="getHierarchyCardinality(mondrian.olap.SchemaReader, mondrian.olap.Hierarchy)"><!-- --></A><H3>getHierarchyCardinality</H3><PRE>public static int <B>getHierarchyCardinality</B>(<A HREF="../../mondrian/olap/SchemaReader.html" title="interface in mondrian.olap">SchemaReader</A> schemaReader, <A HREF="../../mondrian/olap/Hierarchy.html" title="interface in mondrian.olap">Hierarchy</A> hierarchy)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setOrdinals(mondrian.olap.SchemaReader, mondrian.olap.Member)"><!-- --></A><H3>setOrdinals</H3><PRE>public static void <B>setOrdinals</B>(<A HREF="../../mondrian/olap/SchemaReader.html" title="interface in mondrian.olap">SchemaReader</A> schemaReader, <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> seedMember)</PRE><DL><DD>Sets member ordinal values using a Bottom-up/Top-down algorithm. <p>Gets an array of members for each level and traverses array for the lowest level, setting each member's parent's parent's etc. member's ordinal if not set working back down to the leaf member and then going to the next leaf member and traversing up again. <p>The above algorithm only works for a hierarchy that has all of its leaf members in the same level (that is, a non-ragged hierarchy), which is the norm. After all member ordinal values have been set, traverses the array of members, making sure that all members' ordinals have been set. If one is found that is not set, then one must to a full Top-down setting of the ordinals. <p>The Bottom-up/Top-down algorithm is MUCH faster than the Top-down algorithm.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>schemaReader</CODE> - Schema reader<DD><CODE>seedMember</CODE> - Member</DL></DD></DL><HR><A NAME="setParentMember(mondrian.rolap.RolapMember)"><!-- --></A><H3>setParentMember</H3><PRE>void <B>setParentMember</B>(<A HREF="../../mondrian/rolap/RolapMember.html" title="class in mondrian.rolap">RolapMember</A> parentMember)</PRE><DL><DD>Sets a member's parent. <p>Can screw up the caching structure. Only to be called by <A HREF="../../mondrian/olap/CacheControl.html#createMoveCommand(mondrian.olap.Member, mondrian.olap.Member)"><CODE>CacheControl.createMoveCommand(mondrian.olap.Member, mondrian.olap.Member)</CODE></A>. <p>New parent must be in same level as old parent.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>parentMember</CODE> - New parent member<DT><B>See Also:</B><DD><A HREF="../../mondrian/rolap/RolapMember.html#getParentMember()"><CODE>getParentMember()</CODE></A>, <A HREF="../../mondrian/olap/MemberBase.html#getParentUniqueName()"><CODE>MemberBase.getParentUniqueName()</CODE></A></DL></DD></DL><HR><A NAME="keyToString(java.lang.Object)"><!-- --></A><H3>keyToString</H3><PRE>protected static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>keyToString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> key)</PRE><DL><DD>Converts a key to a string to be used as part of the member's name and unique name. <p>Usually, it just calls <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang"><CODE>Object.toString()</CODE></A>. But if the key is an integer value represented in a floating-point column, we'd prefer the integer value. For example, one member of the <code>[Sales].[Store SQFT]</code> dimension comes out "20319.0" but we'd like it to be "20319".<P><DD><DL></DL></DD></DL><HR><A NAME="getLogger()"><!-- --></A><H3>getLogger</H3><PRE>protected org.apache.log4j.Logger <B>getLogger</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/OlapElementBase.html#getLogger()">getLogger</A></CODE> in class <CODE><A HREF="../../mondrian/olap/OlapElementBase.html" title="class in mondrian.olap">OlapElementBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getLevel()"><!-- --></A><H3>getLevel</H3><PRE>public <A HREF="../../mondrian/rolap/RolapLevel.html" title="class in mondrian.rolap">RolapLevel</A> <B>getLevel</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/Member.html#getLevel()">getLevel</A></CODE> in interface <CODE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/olap/MemberBase.html#getLevel()">getLevel</A></CODE> in class <CODE><A HREF="../../mondrian/olap/MemberBase.html" title="class in mondrian.olap">MemberBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getHierarchy()"><!-- --></A><H3>getHierarchy</H3><PRE>public <A HREF="../../mondrian/rolap/RolapHierarchy.html" title="class in mondrian.rolap">RolapHierarchy</A> <B>getHierarchy</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/Member.html#getHierarchy()">getHierarchy</A></CODE> in interface <CODE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/OlapElement.html#getHierarchy()">getHierarchy</A></CODE> in interface <CODE><A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/olap/MemberBase.html#getHierarchy()">getHierarchy</A></CODE> in class <CODE><A HREF="../../mondrian/olap/MemberBase.html" title="class in mondrian.olap">MemberBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getParentMember()"><!-- --></A><H3>getParentMember</H3><PRE>public <A HREF="../../mondrian/rolap/RolapMember.html" title="class in mondrian.rolap">RolapMember</A> <B>getParentMember</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/olap/Member.html#getParentMember()">Member</A></CODE></B></DD><DD>Returns this member's parent, or null (not the 'null member', as returned by <A HREF="../../mondrian/olap/Hierarchy.html#getNullMember()"><CODE>Hierarchy.getNullMember()</CODE></A>) if it has no parent. <p>In an access-control context, a member may have no <em>visible</em> parents, so use <A HREF="../../mondrian/olap/SchemaReader.html#getMemberParent(mondrian.olap.Member)"><CODE>SchemaReader.getMemberParent(mondrian.olap.Member)</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/Member.html#getParentMember()">getParentMember</A></CODE> in interface <CODE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/olap/MemberBase.html#getParentMember()">getParentMember</A></CODE> in class <CODE><A HREF="../../mondrian/olap/MemberBase.html" title="class in mondrian.olap">MemberBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/olap/OlapElementBase.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../mondrian/olap/OlapElementBase.html" title="class in mondrian.olap">OlapElementBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/olap/OlapElementBase.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../mondrian/olap/OlapElementBase.html" title="class in mondrian.olap">OlapElementBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="equals(mondrian.olap.OlapElement)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A> o)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/olap/OlapElementBase.html#equals(mondrian.olap.OlapElement)">equals</A></CODE> in class <CODE><A HREF="../../mondrian/olap/OlapElementBase.html" title="class in mondrian.olap">OlapElementBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="makeUniqueName(mondrian.rolap.HierarchyUsage)"><!-- --></A><H3>makeUniqueName</H3><PRE>void <B>makeUniqueName</B>(<A HREF="../../mondrian/rolap/HierarchyUsage.html" title="class in mondrian.rolap">HierarchyUsage</A> hierarchyUsage)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setUniqueName(java.lang.Object)"><!-- --></A><H3>setUniqueName</H3><PRE>protected void <B>setUniqueName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> key)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isCalculatedInQuery()"><!-- --></A><H3>isCalculatedInQuery</H3><PRE>public boolean <B>isCalculatedInQuery</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/olap/Member.html#isCalculatedInQuery()">Member</A></CODE></B></DD><DD>Returns whether this member is computed from a <code>with member</code> clause in an mdx query.<P><DD><DL></DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/OlapElement.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/MemberBase.html#getName()">getName</A></CODE> in class <CODE><A HREF="../../mondrian/olap/MemberBase.html" title="class in mondrian.olap">MemberBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/olap/Member.html#setName(java.lang.String)">Member</A></CODE></B></DD><DD>Only allowable if the member is part of the <code>WITH</code> clause of a query.<P><DD><DL></DL></DD></DL><HR><A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>setProperty</H3><PRE>public void <B>setProperty</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value)</PRE><DL><DD>Sets a property of this member to a given value. <p>WARNING: Setting system properties such as "$name" may have nasty side-effects.<P><DD><DL></DL></DD></DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?