calc.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 390 行 · 第 1/2 页
HTML
390 行
Evaluates this expression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/Calc.html#getResultStyle()">getResultStyle</A></B>()</CODE><BR> Returns style in which the result of evaluating this expression is returned.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/Calc.html#getType()">getType</A></B>()</CODE><BR> Returns the type of this expression.</TD></TR></TABLE> <P><!-- ============ 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="evaluate(mondrian.olap.Evaluator)"><!-- --></A><H3>evaluate</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>evaluate</B>(<A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> evaluator)</PRE><DL><DD>Evaluates this expression.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - Provides dimensional context in which to evaluate this expression<DT><B>Returns:</B><DD>Result of expression evaluation</DL></DD></DL><HR><A NAME="dependsOn(mondrian.olap.Dimension)"><!-- --></A><H3>dependsOn</H3><PRE>boolean <B>dependsOn</B>(<A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension)</PRE><DL><DD>Returns whether this expression depends upon a given dimension. <p>If it does not depend on the dimension, then re-evaluating the expression with a different member of this context must produce the same answer.<p/> 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>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="getType()"><!-- --></A><H3>getType</H3><PRE><A HREF="../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A> <B>getType</B>()</PRE><DL><DD>Returns the type of this expression.<P><DD><DL></DL></DD></DL><HR><A NAME="accept(mondrian.calc.CalcWriter)"><!-- --></A><H3>accept</H3><PRE>void <B>accept</B>(<A HREF="../../mondrian/calc/CalcWriter.html" title="class in mondrian.calc">CalcWriter</A> calcWriter)</PRE><DL><DD>Prints this expression, by accepting a visiting <A HREF="../../mondrian/calc/CalcWriter.html" title="class in mondrian.calc"><CODE>CalcWriter</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>calcWriter</CODE> - Writer</DL></DD></DL><HR><A NAME="getResultStyle()"><!-- --></A><H3>getResultStyle</H3><PRE><A HREF="../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A> <B>getResultStyle</B>()</PRE><DL><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>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/BooleanCalc.html" title="interface in mondrian.calc"><B>PREV CLASS</B></A> <A HREF="../../mondrian/calc/CalcWriter.html" title="class in mondrian.calc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?mondrian/calc/Calc.html" target="_top"><B>FRAMES</B></A> <A HREF="Calc.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -
显示快捷键?