rolaphierarchy.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 1,095 行 · 第 1/4 页
HTML
1,095 行
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getAlias</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getSharedHierarchyName()"><!-- --></A><H3>getSharedHierarchyName</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>getSharedHierarchyName</B>()</PRE><DL><DD>Returns the name of the source hierarchy, if this hierarchy is shared, otherwise null. <p>If this hierarchy is a public -- that is, it belongs to a dimension which is a usage of a shared dimension -- then <code>sharedHierarchyName</code> holds the unique name of the shared hierarchy; otherwise it is null. <p> Suppose this hierarchy is "Weekly" in the dimension "Order Date" of cube "Sales", and that "Order Date" is a usage of the "Time" dimension. Then <code>sharedHierarchyName</code> will be "[Time].[Weekly]".<P><DD><DL></DL></DD></DL><HR><A NAME="addToFrom(mondrian.rolap.sql.SqlQuery, mondrian.olap.MondrianDef.Expression)"><!-- --></A><H3>addToFrom</H3><PRE>void <B>addToFrom</B>(<A HREF="../../mondrian/rolap/sql/SqlQuery.html" title="class in mondrian.rolap.sql">SqlQuery</A> query, <A HREF="../../mondrian/olap/MondrianDef.Expression.html" title="class in mondrian.olap">MondrianDef.Expression</A> expression)</PRE><DL><DD>Adds to the FROM clause of the query the tables necessary to access the members of this hierarchy. If <code>expression</code> is not null, adds the tables necessary to compute that expression. <p> This method is idempotent: if you call it more than once, it only adds the table(s) to the FROM clause once.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - Query to add the hierarchy to<DD><CODE>expression</CODE> - Level to qualify up to; if null, qualifies up to the topmost ('all') expression, which may require more columns and more joins</DL></DD></DL><HR><A NAME="addToFrom(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapStar.Table)"><!-- --></A><H3>addToFrom</H3><PRE>void <B>addToFrom</B>(<A HREF="../../mondrian/rolap/sql/SqlQuery.html" title="class in mondrian.rolap.sql">SqlQuery</A> query, <A HREF="../../mondrian/rolap/RolapStar.Table.html" title="class in mondrian.rolap">RolapStar.Table</A> table)</PRE><DL><DD>Adds a table to the FROM clause of the query. If <code>table</code> is not null, adds the table. Otherwise, add the relation on which this hierarchy is based on. <p> This method is idempotent: if you call it more than once, it only adds the table(s) to the FROM clause once.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - Query to add the hierarchy to<DD><CODE>table</CODE> - table to add to the query</DL></DD></DL><HR><A NAME="createMemberReader(mondrian.olap.Role)"><!-- --></A><H3>createMemberReader</H3><PRE><A HREF="../../mondrian/rolap/MemberReader.html" title="interface in mondrian.rolap">MemberReader</A> <B>createMemberReader</B>(<A HREF="../../mondrian/olap/Role.html" title="interface in mondrian.olap">Role</A> role)</PRE><DL><DD>Creates a member reader which enforces the access-control profile of <code>role</code>. <p>This method may not be efficient, so the caller should take care not to call it too often. A cache is a good idea.<P><DD><DL><DT><B>Pre-condition:</B></DT> <DD>role != null</DD><DT><B>Post-condition:</B></DT> <DD>return != null</DD></DL></DD></DL><HR><A NAME="isRagged()"><!-- --></A><H3>isRagged</H3><PRE>public boolean <B>isRagged</B>()</PRE><DL><DD>A hierarchy is ragged if it contains one or more levels with hidden members.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/HierarchyBase.html#isRagged()">isRagged</A></CODE> in class <CODE><A HREF="../../mondrian/olap/HierarchyBase.html" title="class in mondrian.olap">HierarchyBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAggregateChildrenExpression()"><!-- --></A><H3>getAggregateChildrenExpression</H3><PRE><A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A> <B>getAggregateChildrenExpression</B>()</PRE><DL><DD>Returns an expression which will compute a member's value by aggregating its children. <p>It is efficient to share one expression between all calculated members in a parent-child hierarchy, so we only need need to validate the expression once.<P><DD><DL></DL></DD></DL><HR><A NAME="createClosedPeerDimension(mondrian.rolap.RolapLevel, mondrian.olap.MondrianDef.Closure, mondrian.olap.MondrianDef.CubeDimension)"><!-- --></A><H3>createClosedPeerDimension</H3><PRE><A HREF="../../mondrian/rolap/RolapDimension.html" title="class in mondrian.rolap">RolapDimension</A> <B>createClosedPeerDimension</B>(<A HREF="../../mondrian/rolap/RolapLevel.html" title="class in mondrian.rolap">RolapLevel</A> src, <A HREF="../../mondrian/olap/MondrianDef.Closure.html" title="class in mondrian.olap">MondrianDef.Closure</A> clos, <A HREF="../../mondrian/olap/MondrianDef.CubeDimension.html" title="class in mondrian.olap">MondrianDef.CubeDimension</A> xmlDimension)</PRE><DL><DD>Builds a dimension which maps onto a table holding the transitive closure of the relationship for this parent-child level. <p>This method is triggered by the <A HREF="../../mondrian/olap/MondrianDef.Closure.html" title="class in mondrian.olap"><CODE>MondrianDef.Closure</CODE></A> element in a schema, and is only meaningful for a parent-child hierarchy. <p>When a Schema contains a parent-child Hierarchy that has an associated closure table, Mondrian creates a parallel internal Hierarchy, called a "closed peer", that refers to the closure table. This is indicated in the schema at the level of a Level, by including a Closure element. The closure table represents the transitive closure of the parent-child relationship. <p>The peer dimension, with its single hierarchy, and 3 levels (all, closure, item) really 'belong to' the parent-child level. If a single hierarchy had two parent-child levels (however unlikely this might be) then each level would have its own auxiliary dimension. <p>For example, in the demo schema the [HR].[Employee] dimension contains a parent-child hierarchy: <pre> <Dimension name="Employees" foreignKey="employee_id"> <Hierarchy hasAll="true" allMemberName="All Employees" primaryKey="employee_id"> <Table name="employee"/> <Level name="Employee Id" type="Numeric" uniqueMembers="true" column="employee_id" parentColumn="supervisor_id" nameColumn="full_name" nullParentValue="0"> <Closure parentColumn="supervisor_id" childColumn="employee_id"> <Table name="employee_closure"/> </Closure> ... </pre> The internal closed peer Hierarchy has this structure: <pre> <Dimension name="Employees" foreignKey="employee_id"> ... <Hierarchy name="Employees$Closure" hasAll="true" allMemberName="All Employees" primaryKey="employee_id" primaryKeyTable="employee_closure"> <Join leftKey="supervisor_id" rightKey="employee_id"> <Table name="employee_closure"/> <Table name="employee"/> </Join> <Level name="Closure" type="Numeric" uniqueMembers="false" table="employee_closure" column="supervisor_id"/> <Level name="Employee" type="Numeric" uniqueMembers="true" table="employee_closure" column="employee_id"/> </Hierarchy> </pre> <p>Note that the original Level with the Closure produces two Levels in the closed peer Hierarchy: a simple peer (Employee) and a closed peer (Closure).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - a parent-child Level that has a Closure clause<DD><CODE>clos</CODE> - a Closure clause<DT><B>Returns:</B><DD>the closed peer Level in the closed peer Hierarchy</DL></DD></DL><HR><A NAME="setDefaultMember(mondrian.olap.Member)"><!-- --></A><H3>setDefaultMember</H3><PRE>public void <B>setDefaultMember</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> defaultMember)</PRE><DL><DD>Sets default member of this Hierarchy.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>defaultMember</CODE> - Default member</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href="http://sourceforge.net/projects/mondrian"><img src="http://sourceforge.net/sflogo.php?group_id=35302&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../mondrian/rolap/RolapEvaluator.RolapEvaluatorRoot.html" title="class in mondrian.rolap"><B>PREV CLASS</B></A> <A HREF="../../mondrian/rolap/RolapHierarchy.LimitedRollupMember.html" title="class in mondrian.rolap"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?mondrian/rolap/RolapHierarchy.html" target="_top"><B>FRAMES</B></A> <A HREF="RolapHierarchy.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?