expcompiler.html

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

HTML
688 行
字号
 result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/calc/ListCalc.html" title="interface in mondrian.calc">ListCalc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#compileList(mondrian.olap.Exp, boolean)">compileList</A></B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp,            boolean&nbsp;mutable)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles an expression which yields <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util"><CODE>List</CODE></A> result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/calc/MemberCalc.html" title="interface in mondrian.calc">MemberCalc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#compileMember(mondrian.olap.Exp)">compileMember</A></B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles an expression which yields a <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap"><CODE>Member</CODE></A> result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#compileScalar(mondrian.olap.Exp, boolean)">compileScalar</A></B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp,              boolean&nbsp;specific)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles an expression to yield a scalar result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/calc/StringCalc.html" title="interface in mondrian.calc">StringCalc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#compileString(mondrian.olap.Exp)">compileString</A></B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles an expression which yields a <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang"><CODE>String</CODE></A> result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/calc/TupleCalc.html" title="interface in mondrian.calc">TupleCalc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#compileTuple(mondrian.olap.Exp)">compileTuple</A></B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles an expression which yields a tuple result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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;</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#getAcceptableResultStyles()">getAcceptableResultStyles</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#getEvaluator()">getEvaluator</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the evaluator to be used for evaluating expressions during the compilation process.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/olap/Validator.html" title="interface in mondrian.olap">Validator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#getValidator()">getValidator</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the validator which was used to validate this expression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../mondrian/calc/ParameterSlot.html" title="interface in mondrian.calc">ParameterSlot</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/calc/ExpCompiler.html#registerParameter(mondrian.olap.Parameter)">registerParameter</A></B>(<A HREF="../../mondrian/olap/Parameter.html" title="interface in mondrian.olap">Parameter</A>&nbsp;parameter)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implements a parameter, returning a unique slot which will hold the parameter's value.</TD></TR></TABLE>&nbsp;<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="getEvaluator()"><!-- --></A><H3>getEvaluator</H3><PRE><A HREF="../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> <B>getEvaluator</B>()</PRE><DL><DD>Returns the evaluator to be used for evaluating expressions during the compilation process.<P><DD><DL></DL></DD></DL><HR><A NAME="getValidator()"><!-- --></A><H3>getValidator</H3><PRE><A HREF="../../mondrian/olap/Validator.html" title="interface in mondrian.olap">Validator</A> <B>getValidator</B>()</PRE><DL><DD>Returns the validator which was used to validate this expression.<P><DD><DL><DT><B>Returns:</B><DD>validator</DL></DD></DL><HR><A NAME="compile(mondrian.olap.Exp)"><!-- --></A><H3>compile</H3><PRE><A HREF="../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A> <B>compile</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD>Compiles an expression.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DT><B>Returns:</B><DD>Compiled expression</DL></DD></DL><HR><A NAME="compileAs(mondrian.olap.Exp, mondrian.olap.type.Type, java.util.List)"><!-- --></A><H3>compileAs</H3><PRE><A HREF="../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A> <B>compileAs</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp,               <A HREF="../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A>&nbsp;resultType,               <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;preferredResultStyles)</PRE><DL><DD>Compiles an expression to a given result type. <p>If <code>resultType</code> is not null, casts the expression to that type. Throws an exception if that conversion is not allowed by the type system. <p>The <code>preferredResultStyles</code> parameter specifies a list of desired result styles. It must not be null, but may be empty.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DD><CODE>resultType</CODE> - Desired result type, or null to use expression's                   current type<DD><CODE>preferredResultStyles</CODE> - List of result types, in descending order                   of preference. Never null.<DT><B>Returns:</B><DD>Compiled expression, or null if none can satisfy</DL></DD></DL><HR><A NAME="compileMember(mondrian.olap.Exp)"><!-- --></A><H3>compileMember</H3><PRE><A HREF="../../mondrian/calc/MemberCalc.html" title="interface in mondrian.calc">MemberCalc</A> <B>compileMember</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD>Compiles an expression which yields a <A HREF="../../mondrian/olap/Member.html" title="interface in mondrian.olap"><CODE>Member</CODE></A> result.<P><DD><DL></DL></DD></DL><HR><A NAME="compileLevel(mondrian.olap.Exp)"><!-- --></A><H3>compileLevel</H3><PRE><A HREF="../../mondrian/calc/LevelCalc.html" title="interface in mondrian.calc">LevelCalc</A> <B>compileLevel</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD>Compiles an expression which yields a <A HREF="../../mondrian/olap/Level.html" title="interface in mondrian.olap"><CODE>Level</CODE></A> result.<P><DD><DL></DL></DD></DL><HR><A NAME="compileDimension(mondrian.olap.Exp)"><!-- --></A><H3>compileDimension</H3><PRE><A HREF="../../mondrian/calc/DimensionCalc.html" title="interface in mondrian.calc">DimensionCalc</A> <B>compileDimension</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD>Compiles an expression which yields a <A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap"><CODE>Dimension</CODE></A> result.<P><DD><DL></DL></DD></DL><HR><A NAME="compileHierarchy(mondrian.olap.Exp)"><!-- --></A><H3>compileHierarchy</H3><PRE><A HREF="../../mondrian/calc/HierarchyCalc.html" title="interface in mondrian.calc">HierarchyCalc</A> <B>compileHierarchy</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD>Compiles an expression which yields a <A HREF="../../mondrian/olap/Hierarchy.html" title="interface in mondrian.olap"><CODE>Hierarchy</CODE></A> result.<P><DD><DL></DL></DD></DL><HR><A NAME="compileInteger(mondrian.olap.Exp)"><!-- --></A><H3>compileInteger</H3><PRE><A HREF="../../mondrian/calc/IntegerCalc.html" title="interface in mondrian.calc">IntegerCalc</A> <B>compileInteger</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE><DL><DD>Compiles an expression which yields an <code>int</code> result. The expression is implicitly converted into a scalar.<P><DD><DL></DL></DD></DL><HR><A NAME="compileString(mondrian.olap.Exp)"><!-- --></A><H3>compileString</H3><PRE><A HREF="../../mondrian/calc/StringCalc.html" title="interface in mondrian.calc">StringCalc</A> <B>compileString</B>(<A HREF="../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A>&nbsp;exp)</PRE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?