📄 evaluator.html
字号:
<A NAME="getConnectionLocale()"><!-- --></A><H3>getConnectionLocale</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getConnectionLocale</B>()</PRE><DL><DD>Returns the connection's locale.<P><DD><DL></DL></DD></DL><HR><A NAME="getProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>getProperty</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>getProperty</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> defaultValue)</PRE><DL><DD>Retrieves the value of property <code>name</code>. If more than one member in the current context defines that property, the one with the highest solve order has precedence. <p>If the property is not defined, default value is returned.<P><DD><DL></DL></DD></DL><HR><A NAME="getSchemaReader()"><!-- --></A><H3>getSchemaReader</H3><PRE><A HREF="../../mondrian/olap/SchemaReader.html" title="interface in mondrian.olap">SchemaReader</A> <B>getSchemaReader</B>()</PRE><DL><DD>Returns a <A HREF="../../mondrian/olap/SchemaReader.html" title="interface in mondrian.olap"><CODE>SchemaReader</CODE></A> appropriate for the current access-control context.<P><DD><DL></DL></DD></DL><HR><A NAME="getCachedResult(mondrian.olap.ExpCacheDescriptor)"><!-- --></A><H3>getCachedResult</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>getCachedResult</B>(<A HREF="../../mondrian/olap/ExpCacheDescriptor.html" title="class in mondrian.olap">ExpCacheDescriptor</A> key)</PRE><DL><DD>Simple caching of the result of an <code>Exp</code>. The key for the cache consists of all members of the current context that <code>exp</code> depends on. Members of independent dimensions are not part of the key.<P><DD><DL><DT><B>See Also:</B><DD><A HREF="../../mondrian/calc/Calc.html#dependsOn(mondrian.olap.Dimension)"><CODE>Calc.dependsOn(mondrian.olap.Dimension)</CODE></A></DL></DD></DL><HR><A NAME="isNonEmpty()"><!-- --></A><H3>isNonEmpty</H3><PRE>boolean <B>isNonEmpty</B>()</PRE><DL><DD>Returns true for an axis that is NON EMPTY. <p>May be used by expression evaluators to optimize their result. For example, a top-level crossjoin may be optimized by removing all non-empty set elements before performing the crossjoin. This is possible because of the identity <blockquote><code>nonempty(crossjoin(a, b)) == nonempty(crossjoin(nonempty(a), nonempty(b));</code></blockquote><P><DD><DL></DL></DD></DL><HR><A NAME="setNonEmpty(boolean)"><!-- --></A><H3>setNonEmpty</H3><PRE>void <B>setNonEmpty</B>(boolean nonEmpty)</PRE><DL><DD>Sets whether an expression evaluation should filter out empty cells. Allows expressions to modify non empty flag to evaluate their children.<P><DD><DL></DL></DD></DL><HR><A NAME="newEvalException(java.lang.Object, java.lang.String)"><!-- --></A><H3>newEvalException</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang">RuntimeException</A> <B>newEvalException</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> context, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> s)</PRE><DL><DD>Creates an exception which indicates that an error has occurred during the runtime evaluation of a function. The caller should then throw that exception.<P><DD><DL></DL></DD></DL><HR><A NAME="evaluateNamedSet(java.lang.String, mondrian.olap.Exp)"><!-- --></A><H3>evaluateNamedSet</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>evaluateNamedSet</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A> exp)</PRE><DL><DD>Evaluates a named set.<P><DD><DL></DL></DD></DL><HR><A NAME="getMembers()"><!-- --></A><H3>getMembers</H3><PRE><A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] <B>getMembers</B>()</PRE><DL><DD>Returns an array of the members which make up the current context.<P><DD><DL></DL></DD></DL><HR><A NAME="getMissCount()"><!-- --></A><H3>getMissCount</H3><PRE>int <B>getMissCount</B>()</PRE><DL><DD>Returns the number of times that this evaluator has told a lie when retrieving cell values.<P><DD><DL></DL></DD></DL><HR><A NAME="getParameterValue(mondrian.calc.ParameterSlot)"><!-- --></A><H3>getParameterValue</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>getParameterValue</B>(<A HREF="../../mondrian/calc/ParameterSlot.html" title="interface in mondrian.calc">ParameterSlot</A> slot)</PRE><DL><DD>Returns the value of a parameter, evaluating its default value if it is not set.<P><DD><DL></DL></DD></DL><HR><A NAME="getIterationLength()"><!-- --></A><H3>getIterationLength</H3><PRE>int <B>getIterationLength</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the iteration length of the current context</DL></DD></DL><HR><A NAME="setIterationLength(int)"><!-- --></A><H3>setIterationLength</H3><PRE>void <B>setIterationLength</B>(int length)</PRE><DL><DD>Sets the iteration length for the current evaluator context<P><DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - length to be set</DL></DD></DL><HR><A NAME="isEvalAxes()"><!-- --></A><H3>isEvalAxes</H3><PRE>boolean <B>isEvalAxes</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>true if evaluating axes</DL></DD></DL><HR><A NAME="setEvalAxes(boolean)"><!-- --></A><H3>setEvalAxes</H3><PRE>void <B>setEvalAxes</B>(boolean evalAxes)</PRE><DL><DD>Indicate whether the evaluator is evaluating the axes<P><DD><DL><DT><B>Parameters:</B><DD><CODE>evalAxes</CODE> - true if evaluating axes</DL></DD></DL><HR><A NAME="pushAggregation(java.util.List)"><!-- --></A><H3>pushAggregation</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>pushAggregation</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)</PRE><DL><DD>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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>list</CODE> - List of members<DT><B>Returns:</B><DD>Aggregator with <code>list</code> added to its aggregation context</DL></DD></DL><HR><A NAME="shouldIgnoreUnrelatedDimensions()"><!-- --></A><H3>shouldIgnoreUnrelatedDimensions</H3><PRE>boolean <B>shouldIgnoreUnrelatedDimensions</B>()</PRE><DL><DD>Checks if unrelated dimensions to the measure in the current context should be ignored<P><DD><DL><DT><B>Returns:</B><DD>boolean</DL></DD></DL><HR><A NAME="getMeasureCube()"><!-- --></A><H3>getMeasureCube</H3><PRE><A HREF="../../mondrian/olap/Cube.html" title="interface in mondrian.olap">Cube</A> <B>getMeasureCube</B>()</PRE><DL><DD>Returns the base (non-virtual) cube that the current measure in the context belongs to.<P><DD><DL><DT><B>Returns:</B><DD>Cube</DL></DD></DL><HR><A NAME="needToReturnNullForUnrelatedDimension(mondrian.olap.Member[])"><!-- --></A><H3>needToReturnNullForUnrelatedDimension</H3><PRE>boolean <B>needToReturnNullForUnrelatedDimension</B>(<A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap">Member</A>[] members)</PRE><DL><DD>If IgnoreMeasureForNonJoiningDimension is set to true and one or more members are on unrelated dimension for the measure in current context then returns true.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>members</CODE> - dimensions for the members need to be checked whether related or unrelated<DT><B>Returns:</B><DD>boolean</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/olap/EnumeratedValues.Value.html" title="interface in mondrian.olap"><B>PREV CLASS</B></A> <A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?mondrian/olap/Evaluator.html" target="_top"><B>FRAMES</B></A> <A HREF="Evaluator.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -