scalartype.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 541 行 · 第 1/2 页
HTML
541 行
ScalarType</H3><PRE>protected <B>ScalarType</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> digest)</PRE><DL><DD>Creates a ScalarType (or subtype) with a given digest. <p>The digest is used for <A HREF="../../../mondrian/olap/type/ScalarType.html#toString()"><CODE>toString()</CODE></A> and <A HREF="../../../mondrian/olap/type/ScalarType.html#hashCode()"><CODE>hashCode()</CODE></A>.<P><DL><DT><B>Parameters:</B><DD><CODE>digest</CODE> - Description of this type</DL></DL><!-- ============ 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="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="usesDimension(mondrian.olap.Dimension, boolean)"><!-- --></A><H3>usesDimension</H3><PRE>public boolean <B>usesDimension</B>(<A HREF="../../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> dimension, boolean definitely)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/olap/type/Type.html#usesDimension(mondrian.olap.Dimension, boolean)">Type</A></CODE></B></DD><DD>Returns whether this type contains a given dimension.<p/> For example: <ul> <li><code>DimensionType([Gender])</code> uses only the <code>[Gender]</code> dimension.</li> <li><code>TupleType(MemberType([Gender]), MemberType([Store]))</code> uses <code>[Gender]</code> and <code>[Store]</code> dimensions.</li> </ul><p/> The <code>definitely</code> parameter comes into play when the dimensional information is incomplete. For example, when applied to <code>TupleType(MemberType(null), MemberType([Store]))</code>, <code>usesDimension([Gender], false)</code> returns true because it is possible that the expression returns a member of the <code>[Gender]</code> dimension; but <code>usesDimension([Gender], true)</code> returns true because it is possible that the expression returns a member of the <code>[Gender]</code> dimension.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/olap/type/Type.html#usesDimension(mondrian.olap.Dimension, boolean)">usesDimension</A></CODE> in interface <CODE><A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dimension</CODE> - Dimension<DD><CODE>definitely</CODE> - If true, returns true only if this type definitely uses the dimension<DT><B>Returns:</B><DD>whether this Type uses the given Dimension</DL></DD></DL><HR><A NAME="getHierarchy()"><!-- --></A><H3>getHierarchy</H3><PRE>public <A HREF="../../../mondrian/olap/Hierarchy.html" title="interface in mondrian.olap">Hierarchy</A> <B>getHierarchy</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/olap/type/Type.html#getHierarchy()">Type</A></CODE></B></DD><DD>Returns the Hierarchy of this Type, or null if not known. If not applicable, throws.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/olap/type/Type.html#getHierarchy()">getHierarchy</A></CODE> in interface <CODE><A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Hierarchy of this type, or null if not known</DL></DD></DL><HR><A NAME="getLevel()"><!-- --></A><H3>getLevel</H3><PRE>public <A HREF="../../../mondrian/olap/Level.html" title="interface in mondrian.olap">Level</A> <B>getLevel</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/olap/type/Type.html#getLevel()">Type</A></CODE></B></DD><DD>Returns the Level of this Type, or null if not known. If not applicable, throws.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/olap/type/Type.html#getLevel()">getLevel</A></CODE> in interface <CODE><A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Level of this Type</DL></DD></DL><HR><A NAME="computeCommonType(mondrian.olap.type.Type, int[])"><!-- --></A><H3>computeCommonType</H3><PRE>public <A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A> <B>computeCommonType</B>(<A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A> type, int[] conversionCount)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/olap/type/Type.html#computeCommonType(mondrian.olap.type.Type, int[])">Type</A></CODE></B></DD><DD>Returns a Type which is more general than this and the given Type. The type returned is broad enough to hold any value of either type, but no broader. If there is no such type, returns null. <p>Some examples:<ul> <li>The common type for StringType and NumericType is ScalarType. <li>The common type for NumericType and DecimalType(4, 2) is NumericType. <li>DimensionType and NumericType have no common type. </ul></p> <p>If <code>conversionCount</code> is not null, implicit conversions such as HierarchyType to DimensionType are considered; the parameter is incremented by the number of conversions performed. <p>Some examples:<ul> <li>The common type for HierarchyType(hierarchy=Time.Weekly) and LevelType(dimension=Time), if conversions are allowed, is HierarchyType(dimension=Time). </ul> <p>One use of common types is to determine the types of the arguments to the <code>Iif</code> function. For example, the call <blockquote><code>Iif(1 > 2, [Measures].[Unit Sales], 5)</code></blockquote> has type ScalarType, because DecimalType(-1, 0) is a subtype of ScalarType, and MeasureType can be converted implicitly to ScalarType.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/olap/type/Type.html#computeCommonType(mondrian.olap.type.Type, int[])">computeCommonType</A></CODE> in interface <CODE><A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Type<DD><CODE>conversionCount</CODE> - Number of conversions; output parameter that is incremented each time a conversion is performed; if null, conversions are not considered<DT><B>Returns:</B><DD>More general type</DL></DD></DL><HR><A NAME="getDimension()"><!-- --></A><H3>getDimension</H3><PRE>public <A HREF="../../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A> <B>getDimension</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/olap/type/Type.html#getDimension()">Type</A></CODE></B></DD><DD>Returns the Dimension of this Type, or null if not known. If not applicable, throws.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/olap/type/Type.html#getDimension()">getDimension</A></CODE> in interface <CODE><A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Dimension of this Type, or null if not known.</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/type/NumericType.html" title="class in mondrian.olap.type"><B>PREV CLASS</B></A> <A HREF="../../../mondrian/olap/type/SetType.html" title="class in mondrian.olap.type"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mondrian/olap/type/ScalarType.html" target="_top"><B>FRAMES</B></A> <A HREF="ScalarType.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 | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -
显示快捷键?