defaulttupleconstraint.html

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

HTML
441 行
字号
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="DefaultTupleConstraint()"><!-- --></A><H3>DefaultTupleConstraint</H3><PRE>protected <B>DefaultTupleConstraint</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="addConstraint(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapCube)"><!-- --></A><H3>addConstraint</H3><PRE>public void <B>addConstraint</B>(<A HREF="../../mondrian/rolap/sql/SqlQuery.html" title="class in mondrian.rolap.sql">SqlQuery</A>&nbsp;sqlQuery,                          <A HREF="../../mondrian/rolap/RolapCube.html" title="class in mondrian.rolap">RolapCube</A>&nbsp;baseCube)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#addConstraint(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapCube)">TupleConstraint</A></CODE></B></DD><DD>Modifies a Level.Members query.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#addConstraint(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapCube)">addConstraint</A></CODE> in interface <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html" title="interface in mondrian.rolap.sql">TupleConstraint</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sqlQuery</CODE> - the query to modify<DD><CODE>baseCube</CODE> - base cube for virtual cube constraints</DL></DD></DL><HR><A NAME="addLevelConstraint(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapCube, mondrian.rolap.aggmatcher.AggStar, mondrian.rolap.RolapLevel)"><!-- --></A><H3>addLevelConstraint</H3><PRE>public void <B>addLevelConstraint</B>(<A HREF="../../mondrian/rolap/sql/SqlQuery.html" title="class in mondrian.rolap.sql">SqlQuery</A>&nbsp;query,                               <A HREF="../../mondrian/rolap/RolapCube.html" title="class in mondrian.rolap">RolapCube</A>&nbsp;baseCube,                               <A HREF="../../mondrian/rolap/aggmatcher/AggStar.html" title="class in mondrian.rolap.aggmatcher">AggStar</A>&nbsp;aggStar,                               <A HREF="../../mondrian/rolap/RolapLevel.html" title="class in mondrian.rolap">RolapLevel</A>&nbsp;level)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#addLevelConstraint(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapCube, mondrian.rolap.aggmatcher.AggStar, mondrian.rolap.RolapLevel)">TupleConstraint</A></CODE></B></DD><DD>Will be called multiple times for every "group by" level in Level.Members query, i.e. the level that contains the members and all parent levels except All. If the condition requires so, it may join the levels table to the fact table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#addLevelConstraint(mondrian.rolap.sql.SqlQuery, mondrian.rolap.RolapCube, mondrian.rolap.aggmatcher.AggStar, mondrian.rolap.RolapLevel)">addLevelConstraint</A></CODE> in interface <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html" title="interface in mondrian.rolap.sql">TupleConstraint</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - the query to modify<DD><CODE>baseCube</CODE> - base cube for virtual cube constraints<DD><CODE>aggStar</CODE> - Aggregate table, or null if query is against fact table<DD><CODE>level</CODE> - the level which is accessed in the Level.Members query</DL></DD></DL><HR><A NAME="getMemberChildrenConstraint(mondrian.rolap.RolapMember)"><!-- --></A><H3>getMemberChildrenConstraint</H3><PRE>public <A HREF="../../mondrian/rolap/sql/MemberChildrenConstraint.html" title="interface in mondrian.rolap.sql">MemberChildrenConstraint</A> <B>getMemberChildrenConstraint</B>(<A HREF="../../mondrian/rolap/RolapMember.html" title="class in mondrian.rolap">RolapMember</A>&nbsp;parent)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#getMemberChildrenConstraint(mondrian.rolap.RolapMember)">TupleConstraint</A></CODE></B></DD><DD>When the members of a level are fetched, the result is grouped by into parents and their children. These parent/children are stored in the parent/children cache, whose key consists of the parent and the MemberChildrenConstraint#hashKey(). So we need a matching MemberChildrenConstraint to store the parent with its children into the parent/children cache. <p> The returned MemberChildrenConstraint must be one that would have returned the same children for the given parent as the MemberLevel query has found for that parent. <p> If null is returned, the parent/children will not be cached (but the level/members still will be).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#getMemberChildrenConstraint(mondrian.rolap.RolapMember)">getMemberChildrenConstraint</A></CODE> in interface <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html" title="interface in mondrian.rolap.sql">TupleConstraint</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</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>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCacheKey()"><!-- --></A><H3>getCacheKey</H3><PRE>public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getCacheKey</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/rolap/sql/SqlConstraint.html#getCacheKey()">SqlConstraint</A></CODE></B></DD><DD>Returns a key that becomes part of the key for caching the result of the SQL query. So SqlConstraint instances that produce the same SQL resultset must return equal keys in terms of equal() and hashCode().<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/rolap/sql/SqlConstraint.html#getCacheKey()">getCacheKey</A></CODE> in interface <CODE><A HREF="../../mondrian/rolap/sql/SqlConstraint.html" title="interface in mondrian.rolap.sql">SqlConstraint</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>valid key or null to prevent the result from being cached</DL></DD></DL><HR><A NAME="instance()"><!-- --></A><H3>instance</H3><PRE>public static <A HREF="../../mondrian/rolap/sql/TupleConstraint.html" title="interface in mondrian.rolap.sql">TupleConstraint</A> <B>instance</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getEvaluator()"><!-- --></A><H3>getEvaluator</H3><PRE>public <A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>getEvaluator</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html#getEvaluator()">getEvaluator</A></CODE> in interface <CODE><A HREF="../../mondrian/rolap/sql/TupleConstraint.html" title="interface in mondrian.rolap.sql">TupleConstraint</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the evaluator currently associated with the constraint; null if there is no associated evaluator</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../mondrian/rolap/DefaultMemberChildrenConstraint.html" title="class in mondrian.rolap"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../mondrian/rolap/DelegatingMemberReader.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/DefaultTupleConstraint.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DefaultTupleConstraint.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -
显示快捷键?