📄 evaluator.html
字号:
<CODE> <A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#push(mondrian.olap.Member)">push</A></B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> member)</CODE><BR> Creates a new Evaluator with the same context except for one member.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#push(mondrian.olap.Member[])">push</A></B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] members)</CODE><BR> Creates a new Evaluator with each given member overriding the context of the current Evaluator for its dimension.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#pushAggregation(java.util.List)">pushAggregation</A></B>(<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="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>> list)</CODE><BR> Returns a new Aggregator whose aggregation context adds a given list of members or tuples, and whose dimensional context is the same as this Aggregator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#setContext(java.util.List)">setContext</A></B>(<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="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>> memberList)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#setContext(mondrian.olap.Member)">setContext</A></B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> member)</CODE><BR> Makes <code>member</code> the current member of its dimension.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#setContext(mondrian.olap.Member[])">setContext</A></B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] members)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#setEvalAxes(boolean)">setEvalAxes</A></B>(boolean evalAxes)</CODE><BR> Indicate whether the evaluator is evaluating the axes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#setIterationLength(int)">setIterationLength</A></B>(int length)</CODE><BR> Sets the iteration length for the current evaluator context</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#setNonEmpty(boolean)">setNonEmpty</A></B>(boolean nonEmpty)</CODE><BR> Sets whether an expression evaluation should filter out empty cells.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/olap/Evaluator.html#shouldIgnoreUnrelatedDimensions()">shouldIgnoreUnrelatedDimensions</A></B>()</CODE><BR> Checks if unrelated dimensions to the measure in the current context should be ignored</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="getCube()"><!-- --></A><H3>getCube</H3><PRE><A HREF="../../mondrian/olap/Cube.html" title="interface in mondrian.olap">Cube</A> <B>getCube</B>()</PRE><DL><DD>Returns the current cube.<P><DD><DL></DL></DD></DL><HR><A NAME="getQuery()"><!-- --></A><H3>getQuery</H3><PRE><A HREF="../../mondrian/olap/Query.html" title="class in mondrian.olap">Query</A> <B>getQuery</B>()</PRE><DL><DD>Returns the current query.<P><DD><DL></DL></DD></DL><HR><A NAME="getQueryStartTime()"><!-- --></A><H3>getQueryStartTime</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getQueryStartTime</B>()</PRE><DL><DD>Returns the start time of the current query.<P><DD><DL></DL></DD></DL><HR><A NAME="push(mondrian.olap.Member[])"><!-- --></A><H3>push</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>push</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] members)</PRE><DL><DD>Creates a new Evaluator with each given member overriding the context of the current Evaluator for its dimension. Other dimensions retain the same context as this Evaluator. <p>You can retrieve this Evaluator by calling the new Evaluator's <A HREF="../../mondrian/olap/Evaluator.html#pop()"><CODE>pop()</CODE></A> method, but it is not necessary to call <code>pop</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>members</CODE> - Array of members to add to the context<DT><B>Returns:</B><DD>Evaluator with each given member overriding the state of the current Evaluator for its dimension</DL></DD></DL><HR><A NAME="push()"><!-- --></A><H3>push</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>push</B>()</PRE><DL><DD>Creates a new Evaluator with the same context as this evaluator. Equivalent to <A HREF="../../mondrian/olap/Evaluator.html#push(mondrian.olap.Member[])"><CODE>push(new Member[0])</CODE></A>. <p>This method is typically called before evaluating an expression which is known to corrupt the evaluation context. <p>You can retrieve this Evaluator by calling the new Evaluator's <A HREF="../../mondrian/olap/Evaluator.html#pop()"><CODE>pop()</CODE></A> method, but it is not necessary to call <code>pop</code>.<P><DD><DL><DT><B>Returns:</B><DD>Evaluator with each given member overriding the state of the current Evaluator for its dimension</DL></DD></DL><HR><A NAME="push(mondrian.olap.Member)"><!-- --></A><H3>push</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>push</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> member)</PRE><DL><DD>Creates a new Evaluator with the same context except for one member. Equivalent to <A HREF="../../mondrian/olap/Evaluator.html#push(mondrian.olap.Member[])"><CODE>push(new Member[] |member})</CODE></A>. <p>You can retrieve this Evaluator by calling the new Evaluator's <A HREF="../../mondrian/olap/Evaluator.html#pop()"><CODE>pop()</CODE></A> method, but it is not necessary to call <code>pop</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - Member to add to the context<DT><B>Returns:</B><DD>Evaluator with each given member overriding the state of the current Evaluator for its dimension</DL></DD></DL><HR><A NAME="pop()"><!-- --></A><H3>pop</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>pop</B>()</PRE><DL><DD>Restores previous evaluator.<P><DD><DL></DL></DD></DL><HR><A NAME="setContext(mondrian.olap.Member)"><!-- --></A><H3>setContext</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>setContext</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> member)</PRE><DL><DD>Makes <code>member</code> the current member of its dimension. Returns the previous context.<P><DD><DL><DT><B>Pre-condition:</B></DT> <DD>member != null</DD><DT><B>Post-condition:</B></DT> <DD>return != null</DD></DL></DD></DL><HR><A NAME="setContext(java.util.List)"><!-- --></A><H3>setContext</H3><PRE>void <B>setContext</B>(<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="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>> memberList)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setContext(mondrian.olap.Member[])"><!-- --></A><H3>setContext</H3><PRE>void <B>setContext</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] members)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getContext(mondrian.olap.Dimension)"><!-- --></A><H3>getContext</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A> <B>getContext</B>(<A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="evaluateCurrent()"><!-- --></A><H3>evaluateCurrent</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>evaluateCurrent</B>()</PRE><DL><DD>Calculates and returns the value of the cell at the current context.<P><DD><DL></DL></DD></DL><HR><A NAME="getFormatString()"><!-- --></A><H3>getFormatString</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getFormatString</B>()</PRE><DL><DD>Returns the format string for this cell. This is computed by evaluating the format expression in the current context, and therefore different cells may have different format strings.<P><DD><DL></DL></DD></DL><HR><A NAME="format(java.lang.Object)"><!-- --></A><H3>format</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>format</B>(<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><DD>Formats a value as a string according to the current context's format.<P><DD><DL></DL></DD></DL><HR><A NAME="format(java.lang.Object, java.lang.String)"><!-- --></A><H3>format</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>format</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> formatString)</PRE><DL><DD>Formats a value as a string according to the current context's format, using a given format string.<P><DD><DL></DL></DD></DL><HR><A NAME="getDepth()"><!-- --></A><H3>getDepth</H3><PRE>int <B>getDepth</B>()</PRE><DL><DD>Returns number of ancestor evaluators. Used to check for infinite loops.<P><DD><DL><DT><B>Post-condition:</B></DT> <DD>return getParent() == null ? 0 : getParent().getDepth() + 1</DD></DL></DD></DL><HR><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>getParent</B>()</PRE><DL><DD>Returns parent evaluator.<P><DD><DL></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -