abstractexpcompiler.html

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

HTML
853
字号
 <p>Such an expression is generally a list of <A HREF="../../../mondrian/olap/Member.html" title="interface in mondrian.olap"><CODE>Member</CODE></A> objects or a list of tuples (each represented by a <A HREF="../../../mondrian/olap/Member.html" title="interface in mondrian.olap"><CODE>Member</CODE></A> array). <p>See <A HREF="../../../mondrian/calc/ExpCompiler.html#compileList(mondrian.olap.Exp)"><CODE>ExpCompiler.compileList(mondrian.olap.Exp)</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileList(mondrian.olap.Exp, boolean)">compileList</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DD><CODE>mutable</CODE> - Whether resulting list is mutable</DL></DD></DL><HR><A NAME="compileIter(mondrian.olap.Exp)"><!-- --></A><H3>compileIter</H3><PRE>public <A HREF="../../../mondrian/calc/IterCalc.html" title="interface in mondrian.calc">IterCalc</A> <B>compileIter</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileIter(mondrian.olap.Exp)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression which yields an immutable <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title="class or interface in java.lang"><CODE>Iterable</CODE></A> result.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileIter(mondrian.olap.Exp)">compileIter</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DT><B>Returns:</B><DD>Calculator which yields an Iterable</DL></DD></DL><HR><A NAME="compileBoolean(mondrian.olap.Exp)"><!-- --></A><H3>compileBoolean</H3><PRE>public <A HREF="../../../mondrian/calc/BooleanCalc.html" title="interface in mondrian.calc">BooleanCalc</A> <B>compileBoolean</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileBoolean(mondrian.olap.Exp)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression which yields a <code>boolean</code> result.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileBoolean(mondrian.olap.Exp)">compileBoolean</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DT><B>Returns:</B><DD>Calculator which yields a boolean</DL></DD></DL><HR><A NAME="compileDouble(mondrian.olap.Exp)"><!-- --></A><H3>compileDouble</H3><PRE>public <A HREF="../../../mondrian/calc/DoubleCalc.html" title="interface in mondrian.calc">DoubleCalc</A> <B>compileDouble</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileDouble(mondrian.olap.Exp)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression which yields a <code>double</code> result.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileDouble(mondrian.olap.Exp)">compileDouble</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DT><B>Returns:</B><DD>Calculator which yields a double</DL></DD></DL><HR><A NAME="compileTuple(mondrian.olap.Exp)"><!-- --></A><H3>compileTuple</H3><PRE>public <A HREF="../../../mondrian/calc/TupleCalc.html" title="interface in mondrian.calc">TupleCalc</A> <B>compileTuple</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileTuple(mondrian.olap.Exp)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression which yields a tuple result.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileTuple(mondrian.olap.Exp)">compileTuple</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DT><B>Returns:</B><DD>Calculator which yields a tuple</DL></DD></DL><HR><A NAME="compileScalar(mondrian.olap.Exp, boolean)"><!-- --></A><H3>compileScalar</H3><PRE>public <A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A> <B>compileScalar</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp,                          boolean&nbsp;specific)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileScalar(mondrian.olap.Exp, boolean)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression to yield a scalar result. <p>If the expression yields a member or tuple, the calculator will automatically apply that member or tuple to the current dimensional context and return the value of the current measure.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileScalar(mondrian.olap.Exp, boolean)">compileScalar</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DD><CODE>specific</CODE> - Whether to try to use the specific compile method for   scalar types. For example, if <code>specific</code> is true and   <code>exp</code> is a string expression, calls   <A HREF="../../../mondrian/calc/ExpCompiler.html#compileString(mondrian.olap.Exp)"><CODE>ExpCompiler.compileString(mondrian.olap.Exp)</CODE></A><DT><B>Returns:</B><DD>Calculation which returns the scalar value of the expression</DL></DD></DL><HR><A NAME="registerParameter(mondrian.olap.Parameter)"><!-- --></A><H3>registerParameter</H3><PRE>public <A HREF="../../../mondrian/calc/ParameterSlot.html" title="interface in mondrian.calc">ParameterSlot</A> <B>registerParameter</B>(<A HREF="../../../mondrian/olap/Parameter.html" title="interface in mondrian.olap">Parameter</A>&nbsp;parameter)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#registerParameter(mondrian.olap.Parameter)">ExpCompiler</A></CODE></B></DD><DD>Implements a parameter, returning a unique slot which will hold the parameter's value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#registerParameter(mondrian.olap.Parameter)">registerParameter</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parameter</CODE> - Parameter<DT><B>Returns:</B><DD>Slot</DL></DD></DL><HR><A NAME="getAcceptableResultStyles()"><!-- --></A><H3>getAcceptableResultStyles</H3><PRE>public <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; <B>getAcceptableResultStyles</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#getAcceptableResultStyles()">ExpCompiler</A></CODE></B></DD><DD>Returns a list of the <A HREF="../../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc"><CODE>ResultStyle</CODE></A>s acceptable to the caller.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#getAcceptableResultStyles()">getAcceptableResultStyles</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE></DL></DD><DD><DL></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/impl/AbstractDoubleCalc.html" title="class in mondrian.calc.impl"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../mondrian/calc/impl/AbstractHierarchyCalc.html" title="class in mondrian.calc.impl"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?mondrian/calc/impl/AbstractExpCompiler.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AbstractExpCompiler.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;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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 + -
显示快捷键?