schemareader.html

来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 1,160 行 · 第 1/4 页

HTML
1,160 行
字号
<DL><DD>Returns direct children of <code>member</code>, optimized for NON EMPTY. <p> If <code>context == null</code> then there is no context and all members are returned - then its identical to <A HREF="../../mondrian/olap/SchemaReader.html#getMemberChildren(mondrian.olap.Member)"><CODE>getMemberChildren(Member)</CODE></A>. If <code>context</code> is not null, the resulting members <em>may</em> be restricted to those members that have a non empty row in the fact table for <code>context</code>. Wether or not optimization is possible depends on the SchemaReader implementation.<P><DD><DL></DL></DD></DL><HR><A NAME="getMemberChildren(mondrian.olap.Member[])"><!-- --></A><H3>getMemberChildren</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] <B>getMemberChildren</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[]&nbsp;members)</PRE><DL><DD>Returns direct children of each element of <code>members</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>members</CODE> - Array of members<DT><B>Returns:</B><DD>array of child members<DT><B>Pre-condition:</B></DT>  <DD>members != null</DD><DT><B>Post-condition:</B></DT>  <DD>return != null</DD></DL></DD></DL><HR><A NAME="getMemberChildren(mondrian.olap.Member[], mondrian.olap.Evaluator)"><!-- --></A><H3>getMemberChildren</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] <B>getMemberChildren</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[]&nbsp;members,                           <A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A>&nbsp;context)</PRE><DL><DD>Returns direct children of each element of <code>members</code> which is not empty in <code>context</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>members</CODE> - Array of members<DD><CODE>context</CODE> - Evaluation context<DT><B>Returns:</B><DD>array of child members<DT><B>Pre-condition:</B></DT>  <DD>members != null</DD><DT><B>Post-condition:</B></DT>  <DD>return != null</DD></DL></DD></DL><HR><A NAME="getMemberParent(mondrian.olap.Member)"><!-- --></A><H3>getMemberParent</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>getMemberParent</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;member)</PRE><DL><DD>Returns the parent of <code>member</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - Member<DT><B>Returns:</B><DD>null if member is a root member<DT><B>Pre-condition:</B></DT>  <DD>member != null</DD></DL></DD></DL><HR><A NAME="getMemberDepth(mondrian.olap.Member)"><!-- --></A><H3>getMemberDepth</H3><PRE>int <B>getMemberDepth</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;member)</PRE><DL><DD>Returns the depth of a member. <p>This may not be the same as <code>member.<A HREF="../../mondrian/olap/Member.html#getLevel()"><CODE>getLevel</CODE></A>(). <A HREF="../../mondrian/olap/Level.html#getDepth()"><CODE>getDepth</CODE></A>()</code> for three reasons:<ol> <li><b>Access control</b>. The most senior <em>visible</em> member has   level 0. If the client is not allowed to see the "All" and "Nation"   levels of the "Store" hierarchy, then members of the "State" level will   have depth 0.</li> <li><b>Parent-child hierarchies</b>. Suppose Fred reports to Wilma, and   Wilma reports to no one. "All Employees" has depth 0, Wilma has depth   1, and Fred has depth 2. Fred and Wilma are both in the "Employees"   level, which has depth 1.</li> <li><b>Ragged hierarchies</b>. If Israel has only one, hidden, province then the depth of Tel Aviv, Israel is 2, whereas the depth of another city, San Francisco, CA, USA is 3.</li> </ol><P><DD><DL></DL></DD></DL><HR><A NAME="getMemberByUniqueName(java.util.List, boolean, mondrian.olap.MatchType)"><!-- --></A><H3>getMemberByUniqueName</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>getMemberByUniqueName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&gt;&nbsp;uniqueNameParts,                             boolean&nbsp;failIfNotFound,                             <A HREF="../../mondrian/olap/MatchType.html" title="enum in mondrian.olap">MatchType</A>&nbsp;matchType)</PRE><DL><DD>Finds a member based upon its unique name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uniqueNameParts</CODE> - Unique name of member<DD><CODE>failIfNotFound</CODE> - Whether to throw an error, as opposed to returning   <code>null</code>, if there is no such member.<DD><CODE>matchType</CODE> - indicates the match mode; if not specified, EXACT<DT><B>Returns:</B><DD>The member, or null if not found</DL></DD></DL><HR><A NAME="getMemberByUniqueName(java.util.List, boolean)"><!-- --></A><H3>getMemberByUniqueName</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>getMemberByUniqueName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&gt;&nbsp;uniqueNameParts,                             boolean&nbsp;failIfNotFound)</PRE><DL><DD>Finds a member based upon its unique name, requiring an exact match. <p>This method is equivalent to calling <A HREF="../../mondrian/olap/SchemaReader.html#getMemberByUniqueName(java.util.List, boolean, mondrian.olap.MatchType)"><CODE>getMemberByUniqueName(java.util.List, boolean, MatchType)</CODE></A> with <A HREF="../../mondrian/olap/MatchType.html#EXACT"><CODE>MatchType.EXACT</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uniqueNameParts</CODE> - Unique name of member<DD><CODE>failIfNotFound</CODE> - Whether to throw an error, as opposed to returning   <code>null</code>, if there is no such member.<DT><B>Returns:</B><DD>The member, or null if not found</DL></DD></DL><HR><A NAME="lookupCompound(mondrian.olap.OlapElement, java.util.List, boolean, int, mondrian.olap.MatchType)"><!-- --></A><H3>lookupCompound</H3><PRE><A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A> <B>lookupCompound</B>(<A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A>&nbsp;parent,                           <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&gt;&nbsp;names,                           boolean&nbsp;failIfNotFound,                           int&nbsp;category,                           <A HREF="../../mondrian/olap/MatchType.html" title="enum in mondrian.olap">MatchType</A>&nbsp;matchType)</PRE><DL><DD>Looks up an MDX object by name, specifying how to match if no object exactly matches the name. <p>Resolves a name such as '[Products]&#46;[Product Department]&#46;[Produce]' by resolving the components ('Products', and so forth) one at a time.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - Parent element to search in<DD><CODE>names</CODE> - Exploded compound name, such as {"Products",     "Product Department", "Produce"}<DD><CODE>failIfNotFound</CODE> - If the element is not found, determines whether      to return null or throw an error<DD><CODE>category</CODE> - Type of returned element, a <A HREF="../../mondrian/olap/Category.html" title="class in mondrian.olap"><CODE>Category</CODE></A> value;      <A HREF="../../mondrian/olap/Category.html#Unknown"><CODE>Category.Unknown</CODE></A> if it doesn't matter.<DD><CODE>matchType</CODE> - indicates the match mode; if not specified, EXACT<DT><B>Pre-condition:</B></DT>  <DD>parent != null</DD><DT><B>Post-condition:</B></DT>  <DD>!(failIfNotFound && return == null)</DD></DL></DD></DL><HR><A NAME="lookupCompound(mondrian.olap.OlapElement, java.util.List, boolean, int)"><!-- --></A><H3>lookupCompound</H3><PRE><A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A> <B>lookupCompound</B>(<A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A>&nbsp;parent,                           <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&gt;&nbsp;names,                           boolean&nbsp;failIfNotFound,                           int&nbsp;category)</PRE><DL><DD>Looks up an MDX object by name. <p>Resolves a name such as '[Products]&#46;[Product Department]&#46;[Produce]' by resolving the components ('Products', and so forth) one at a time.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - Parent element to search in<DD><CODE>names</CODE> - Exploded compound name, such as {"Products",     "Product Department", "Produce"}<DD><CODE>failIfNotFound</CODE> - If the element is not found, determines whether      to return null or throw an error<DD><CODE>category</CODE> - Type of returned element, a <A HREF="../../mondrian/olap/Category.html" title="class in mondrian.olap"><CODE>Category</CODE></A> value;      <A HREF="../../mondrian/olap/Category.html#Unknown"><CODE>Category.Unknown</CODE></A> if it doesn't matter.<DT><B>Pre-condition:</B></DT>  <DD>parent != null</DD><DT><B>Post-condition:</B></DT>  <DD>!(failIfNotFound && return == null)</DD></DL></DD></DL><HR><A NAME="getCalculatedMember(java.util.List)"><!-- --></A><H3>getCalculatedMember</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>getCalculatedMember</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&gt;&nbsp;nameParts)</PRE><DL><DD>Looks up a calculated member by name. If the name is not found in the current scope, returns null.<P><DD><DL></DL></DD></DL><HR><A NAME="getNamedSet(java.util.List)"><!-- --></A><H3>getNamedSet</H3><PRE><A HREF="../../mondrian/olap/NamedSet.html" title="interface in mondrian.olap">NamedSet</A> <B>getNamedSet</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&gt;&nbsp;nameParts)</PRE><DL><DD>Looks up a set by name. If the name is not found in the current scope, returns null.<P><DD><DL></DL></DD></DL><HR><A NAME="getMemberRange(mondrian.olap.Level, mondrian.olap.Member, mondrian.olap.Member, java.util.List)"><!-- --></A><H3>getMemberRange</H3><PRE>void <B>getMemberRange</B>(<A HREF="../../mondrian/olap/Level.html" title="interface in mondrian.olap">Level</A>&nbsp;level,                    <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;startMember,                    <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;endMember,                    <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&gt;&nbsp;list)</PRE><DL><DD>Appends to <code>list</code> all members between <code>startMember</code> and <code>endMember</code> (inclusive) which belong to <code>level</code>.<P><DD><DL></DL></DD></DL><HR><A NAME="getLeadMember(mondrian.olap.Member, int)"><!-- --></A><H3>getLeadMember</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>getLeadMember</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;member,                     int&nbsp;n)</PRE><DL><DD>Returns a member <code>n</code> further along in the same level from <code>member</code>.<P><DD><DL><DT><B>Pre-condition:</B></DT>  <DD>member != null</DD></DL></DD></DL><HR><A NAME="compareMembersHierarchically(mondrian.olap.Member, mondrian.olap.Member)"><!-- --></A><H3>compareMembersHierarchically</H3><PRE>int <B>compareMembersHierarchically</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;m1,                                 <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>&nbsp;m2)</PRE><DL><DD>Compares a pair of <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap"><CODE>Member</CODE></A>s according to their order in a prefix traversal. (that is, it is an ancestor or a earlier ), is a sibling, or comes later in a prefix traversal.<P><DD><DL><DT><B>Returns:</B><DD>A negative integer if <code>m1</code> is an ancestor, an earlier   sibling of an ancestor, or a descendent of an earlier sibling, of   <code>m2</code>;   zero if <code>m1</code> is a sibling of <code>m2</code>;   a positive integer if <code>m1</code> comes later in the prefix   traversal then <code>m2</code>.</DL></DD></DL><HR><A NAME="getElementChild(mondrian.olap.OlapElement, mondrian.olap.Id.Segment, mondrian.olap.MatchType)"><!-- --></A><H3>getElementChild</H3><PRE><A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A> <B>getElementChild</B>(<A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A>&nbsp;parent,                            <A HREF="../../mondrian/olap/Id.Segment.html" title="class in mondrian.olap">Id.Segment</A>&nbsp;name,                            <A HREF="../../mondrian/olap/MatchType.html" title="enum in mondrian.olap">MatchType</A>&nbsp;matchType)</PRE><DL><DD>Looks up the child of <code>parent</code> called <code>s</code>; returns

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?