constantcalc.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 813 行 · 第 1/4 页
HTML
813 行
</TR></TABLE> <A NAME="methods_inherited_from_class_mondrian.calc.Calc"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface mondrian.calc.<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../mondrian/calc/Calc.html#getType()">getType</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_mondrian.calc.Calc"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface mondrian.calc.<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../mondrian/calc/Calc.html#getType()">getType</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_mondrian.calc.Calc"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface mondrian.calc.<A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../mondrian/calc/Calc.html#getType()">getType</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ConstantCalc(mondrian.olap.type.Type, java.lang.Object)"><!-- --></A><H3>ConstantCalc</H3><PRE>public <B>ConstantCalc</B>(<A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A> type, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</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="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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/AbstractCalc.html#getResultStyle()">getResultStyle</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/AbstractCalc.html" title="class in mondrian.calc.impl">AbstractCalc</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><HR><A NAME="accept(mondrian.calc.CalcWriter)"><!-- --></A><H3>accept</H3><PRE>public void <B>accept</B>(<A HREF="../../../mondrian/calc/CalcWriter.html" title="class in mondrian.calc">CalcWriter</A> calcWriter)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/Calc.html#accept(mondrian.calc.CalcWriter)">Calc</A></CODE></B></DD><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>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/Calc.html#accept(mondrian.calc.CalcWriter)">accept</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/AbstractCalc.html#accept(mondrian.calc.CalcWriter)">accept</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/AbstractCalc.html" title="class in mondrian.calc.impl">AbstractCalc</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>calcWriter</CODE> - Writer</DL></DD></DL><HR><A NAME="evaluate(mondrian.olap.Evaluator)"><!-- --></A><H3>evaluate</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>evaluate</B>(<A HREF="../../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> evaluator)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/Calc.html#evaluate(mondrian.olap.Evaluator)">Calc</A></CODE></B></DD><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="evaluateInteger(mondrian.olap.Evaluator)"><!-- --></A><H3>evaluateInteger</H3><PRE>public int <B>evaluateInteger</B>(<A HREF="../../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> evaluator)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/IntegerCalc.html#evaluateInteger(mondrian.olap.Evaluator)">IntegerCalc</A></CODE></B></DD><DD>Evaluates this expression to yield an <code>int</code> value. If the result is null, returns the special <A HREF="../../../mondrian/olap/fun/FunUtil.html#IntegerNull"><CODE>FunUtil.IntegerNull</CODE></A> value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/IntegerCalc.html#evaluateInteger(mondrian.olap.Evaluator)">evaluateInteger</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/IntegerCalc.html" title="interface in mondrian.calc">IntegerCalc</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/GenericCalc.html#evaluateInteger(mondrian.olap.Evaluator)">evaluateInteger</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/GenericCalc.html" title="class in mondrian.calc.impl">GenericCalc</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - Evaluation context<DT><B>Returns:</B><DD>evaluation result</DL></DD></DL><HR><A NAME="evaluateDouble(mondrian.olap.Evaluator)"><!-- --></A><H3>evaluateDouble</H3><PRE>public double <B>evaluateDouble</B>(<A HREF="../../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> evaluator)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/DoubleCalc.html#evaluateDouble(mondrian.olap.Evaluator)">DoubleCalc</A></CODE></B></DD><DD>Evaluates this expression to yield a <code>double</code> value. If the result is null, returns the special <A HREF="../../../mondrian/olap/fun/FunUtil.html#DoubleNull"><CODE>FunUtil.DoubleNull</CODE></A> value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/DoubleCalc.html#evaluateDouble(mondrian.olap.Evaluator)">evaluateDouble</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/DoubleCalc.html" title="interface in mondrian.calc">DoubleCalc</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/GenericCalc.html#evaluateDouble(mondrian.olap.Evaluator)">evaluateDouble</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/GenericCalc.html" title="class in mondrian.calc.impl">GenericCalc</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - Evaluation context<DT><B>Returns:</B><DD>evaluation result</DL></DD></DL><HR><A NAME="dependsOn(mondrian.olap.Dimension)"><!-- --></A><H3>dependsOn</H3><PRE>public boolean <B>dependsOn</B>(<A HREF="../../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/Calc.html#dependsOn(mondrian.olap.Dimension)">Calc</A></CODE></B></DD><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>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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/AbstractCalc.html#dependsOn(mondrian.olap.Dimension)">dependsOn</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/AbstractCalc.html" title="class in mondrian.calc.impl">AbstractCalc</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="getCalcs()"><!-- --></A><H3>getCalcs</H3><PRE>public <A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A>[] <B>getCalcs</B>()</PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?