abstractcalc.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 647 行 · 第 1/3 页
HTML
647 行
Some examples:<ul> <li>The expression <blockquote><code>[Measures].[Unit Sales]</code></blockquote> depends on all dimensions except <code>[Measures]</code>. <li>The boolean expression <blockquote><code>([Measures].[Unit Sales], [Time].[1997]) > 1000</code></blockquote> depends on all dimensions except [Measures] and [Time]. <li>The list expression <blockquote><code>Filter([Store].[USA].Children, [Measures].[Unit Sales] < 50)</code></pre></blockquote> depends upon all dimensions <em>except</em> [Store] and [Measures]. How so? Normally the scalar expression would depend upon all dimensions except [Measures], but the <code>Filter</code> function sets the [Store] context before evaluating the scalar expression, so it is not inherited from the surrounding context. </ul><p/><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/Calc.html#dependsOn(mondrian.olap.Dimension)">dependsOn</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dimension</CODE> - Dimension<DT><B>Returns:</B><DD>Whether this expression's result depends upon the current member of the dimension</DL></DD></DL><HR><A NAME="anyDepends(mondrian.calc.Calc[], mondrian.olap.Dimension)"><!-- --></A><H3>anyDepends</H3><PRE>public static boolean <B>anyDepends</B>(<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A>[] calcs, <A HREF="../../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension)</PRE><DL><DD>Returns true if one of the calcs depends on the given dimension.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="anyDependsButFirst(mondrian.calc.Calc[], mondrian.olap.Dimension)"><!-- --></A><H3>anyDependsButFirst</H3><PRE>public static boolean <B>anyDependsButFirst</B>(<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A>[] calcs, <A HREF="../../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension)</PRE><DL><DD>Returns true if calc[0] depends on dimension, else false if calc[0] returns dimension, else true if any of the other calcs depend on dimension. <p>Typical application: <code>Aggregate({Set}, {Value Expression})</code> depends upon everything {Value Expression} depends upon, except the dimensions of {Set}.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="butDepends(mondrian.calc.Calc[], mondrian.olap.Dimension)"><!-- --></A><H3>butDepends</H3><PRE>public static boolean <B>butDepends</B>(<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A>[] calcs, <A HREF="../../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension)</PRE><DL><DD>Returns true if any of the calcs depend on dimension, else false if any of the calcs return dimension, else true.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getArguments()"><!-- --></A><H3>getArguments</H3><PRE>public <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="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>> <B>getArguments</B>()</PRE><DL><DD>Returns any other arguments to this calc. The default implementation returns the empty list.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="simplifyEvaluator(mondrian.calc.Calc, mondrian.olap.Evaluator)"><!-- --></A><H3>simplifyEvaluator</H3><PRE>public static <A HREF="../../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>simplifyEvaluator</B>(<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A> calc, <A HREF="../../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> evaluator)</PRE><DL><DD>Returns a simplified evalator whose context is the same for every dimension which an expression depends on, and the default member for every dimension which it does not depend on. <p>The default member is often the 'all' member, so this evaluator is usually the most efficient context in which to evaluate the expression.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>calc</CODE> - <DD><CODE>evaluator</CODE> - </DL></DD></DL><HR><A NAME="getResultStyle()"><!-- --></A><H3>getResultStyle</H3><PRE>public <A HREF="../../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A> <B>getResultStyle</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/Calc.html#getResultStyle()">Calc</A></CODE></B></DD><DD>Returns style in which the result of evaluating this expression is returned. <p>One application of this method is for the compiler to figure out whether the compiled expression is returning a mutable list. If a mutable list is required, the compiler can create a mutable copy.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/Calc.html#getResultStyle()">getResultStyle</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../mondrian/calc/ExpCompiler.html#compileList(mondrian.olap.Exp, boolean)"><CODE>ExpCompiler.compileList(mondrian.olap.Exp, boolean)</CODE></A></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/calc/impl/AbstractBooleanCalc.html" title="class in mondrian.calc.impl"><B>PREV CLASS</B></A> <A HREF="../../../mondrian/calc/impl/AbstractDateTimeCalc.html" title="class in mondrian.calc.impl"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mondrian/calc/impl/AbstractCalc.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractCalc.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: NESTED | <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 + -
显示快捷键?