expcompiler.factory.html

来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 541 行 · 第 1/2 页

HTML
541
字号
<!-- ============ 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="getExpCompiler(mondrian.olap.Evaluator, mondrian.olap.Validator)"><!-- --></A><H3>getExpCompiler</H3><PRE>public static <A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A> <B>getExpCompiler</B>(<A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A>&nbsp;evaluator,                                         <A HREF="../../mondrian/olap/Validator.html" title="interface in mondrian.olap">Validator</A>&nbsp;validator)                                  throws <A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></PRE><DL><DD>Create a <code>ExpCompiler</code> instance, each call returns a new compiler.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - the <code>Evaluator</code> to use with the compiler<DD><CODE>validator</CODE> - the <code>Validator</code> to use with the compiler<DT><B>Returns:</B><DD>the new <code>ExpCompiler</code> compiler<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></CODE> - if the compiler can not be created</DL></DD></DL><HR><A NAME="getExpCompiler(mondrian.olap.Evaluator, mondrian.olap.Validator, java.util.List)"><!-- --></A><H3>getExpCompiler</H3><PRE>public static <A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A> <B>getExpCompiler</B>(<A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A>&nbsp;evaluator,                                         <A HREF="../../mondrian/olap/Validator.html" title="interface in mondrian.olap">Validator</A>&nbsp;validator,                                         <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A>&gt;&nbsp;resultStyles)                                  throws <A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - the <code>Evaluator</code> to use with the compiler<DD><CODE>validator</CODE> - the <code>Validator</code> to use with the compiler<DD><CODE>resultStyles</CODE> - the initial <code>ResultStyle</code> array for the compiler<DT><B>Returns:</B><DD>the new <code>ExpCompiler</code> compiler<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></CODE> - if the compiler can not be created</DL></DD></DL><HR><A NAME="getThreadLocalClassName()"><!-- --></A><H3>getThreadLocalClassName</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getThreadLocalClassName</B>()</PRE><DL><DD>Get the class name of a <code>ExpCompiler</code> implementation or null.<P><DD><DL><DT><B>Returns:</B><DD>the class name or null.</DL></DD></DL><HR><A NAME="setThreadLocalClassName(java.lang.String)"><!-- --></A><H3>setThreadLocalClassName</H3><PRE>public static void <B>setThreadLocalClassName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;className)</PRE><DL><DD>Sets the class name of a  <code>ExpCompiler</code> implementation. This should be called (obviously) before calling the <code>ExpCompiler.Factory</code> <code>getExpCompiler</code> method to get the <code>ExpCompiler</code> implementation. Generally, this is only used for testing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - Class name</DL></DD></DL><HR><A NAME="clearThreadLocalClassName()"><!-- --></A><H3>clearThreadLocalClassName</H3><PRE>public static void <B>clearThreadLocalClassName</B>()</PRE><DL><DD>Clears the class name (regardless of whether a class name was set). When a class name is set using <code>setThreadLocalClassName</code>, the setting whould be done in a try-block and a call to this clear method should be in the finally-clause of that try-block.<P><DD><DL></DL></DD></DL><HR><A NAME="getClassName()"><!-- --></A><H3>getClassName</H3><PRE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getClassName</B>()</PRE><DL><DD>Get the class name set in the <code>ThreadLocal</code> or null.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getClassName()">getClassName</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>class name or null.</DL></DD></DL><HR><A NAME="getStringProperty()"><!-- --></A><H3>getStringProperty</H3><PRE>protected <A HREF="http://farrago.sourceforge.net/api/org/eigenbase/util/property/StringProperty.html" title="class or interface in org.eigenbase.util.property">StringProperty</A> <B>getStringProperty</B>()</PRE><DL><DD>Return the <code>ExpCompiler.Factory</code property name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getStringProperty()">getStringProperty</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>ExpCompiler.Factory</code> property name</DL></DD></DL><HR><A NAME="getDefault(java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>getDefault</H3><PRE>protected <A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A> <B>getDefault</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>[]&nbsp;parameterTypes,                                 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;parameterValues)                          throws <A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></PRE><DL><DD>The <code>ExpCompiler.Factory</code>'s implementation of the <code>ObjectFactory</code>'s abstract method which returns the default <code>ExpCompiler</code> instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getDefault(java.lang.Class[], java.lang.Object[])">getDefault</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parameterTypes</CODE> - array of classes: Evaluator, Validator and  ResultStyle<DD><CODE>parameterValues</CODE> - the Evaluator, Validator and ResultStyle values<DT><B>Returns:</B><DD><code>ExpCompiler</code> instance<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></CODE> - if the <code>ExpCompiler</code> can not be created.</DL></DD></DL><HR><A NAME="getFactory()"><!-- --></A><H3>getFactory</H3><PRE>public static <A HREF="../../mondrian/calc/ExpCompiler.Factory.html" title="class in mondrian.calc">ExpCompiler.Factory</A> <B>getFactory</B>()</PRE><DL><DD>Get the underlying Factory object. <p> This is for testing only.<P><DD><DL><DT><B>Returns:</B><DD>the <code>ExpCompiler.Factory</code> object</DL></DD></DL><HR><A NAME="removeContext()"><!-- --></A><H3>removeContext</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>removeContext</B>()</PRE><DL><DD>Get the current override contect. <p> This is for testing only.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#removeContext()">removeContext</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the override context object.</DL></DD></DL><HR><A NAME="restoreContext(java.lang.Object)"><!-- --></A><H3>restoreContext</H3><PRE>public void <B>restoreContext</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;context)</PRE><DL><DD>Restore the current overrides. <p> This is for testing only.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#restoreContext(java.lang.Object)">restoreContext</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - the current override object.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../mondrian/calc/ExpCompiler.Factory.Context.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/ExpCompiler.Factory.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ExpCompiler.Factory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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 + -
显示快捷键?