rolapdimension.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 510 行 · 第 1/2 页
HTML
510 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_15) on Thu Jul 31 17:20:12 EDT 2008 --><TITLE>RolapDimension (Mondrian OLAP Server, version 3.0.4.11371)</TITLE><META NAME="keywords" CONTENT="mondrian.rolap.RolapDimension class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="RolapDimension (Mondrian OLAP Server, version 3.0.4.11371)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../mondrian/rolap/RolapDependencyTestingEvaluator.DteRoot.html" title="class in mondrian.rolap"><B>PREV CLASS</B></A> <A HREF="../../mondrian/rolap/RolapEvaluator.html" title="class in mondrian.rolap"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?mondrian/rolap/RolapDimension.html" target="_top"><B>FRAMES</B></A> <A HREF="RolapDimension.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 | <A HREF="#fields_inherited_from_class_mondrian.olap.DimensionBase">FIELD</A> | <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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">mondrian.rolap</FONT><BR>Class RolapDimension</H2><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../mondrian/olap/OlapElementBase.html" title="class in mondrian.olap">mondrian.olap.OlapElementBase</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../mondrian/olap/DimensionBase.html" title="class in mondrian.olap">mondrian.olap.DimensionBase</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>mondrian.rolap.RolapDimension</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A>, <A HREF="../../mondrian/olap/OlapElement.html" title="interface in mondrian.olap">OlapElement</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../mondrian/rolap/RolapCubeDimension.html" title="class in mondrian.rolap">RolapCubeDimension</A></DD></DL><HR><DL><DT><PRE> class <B>RolapDimension</B><DT>extends <A HREF="../../mondrian/olap/DimensionBase.html" title="class in mondrian.olap">DimensionBase</A></DL></PRE><P><code>RolapDimension</code> implements <A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap"><CODE>Dimension</CODE></A>for a ROLAP database. <h2><a name="topic_ordinals">Topic: Dimension ordinals </a></h2> <A HREF="../../mondrian/rolap/RolapEvaluator.html" title="class in mondrian.rolap"><CODE>RolapEvaluator</CODE></A> needs each dimension to have an ordinal, so that it can store the evaluation context as an array of members. <p> The ordinal of a dimension <em>within a particular cube</em> is found by calling <A HREF="../../mondrian/rolap/RolapDimension.html#getOrdinal(mondrian.olap.Cube)"><CODE>getOrdinal(Cube)</CODE></A>. Ordinals are contiguous and zero-based. Zero is always the <code>[Measures]</code> dimension. <p> A dimension may be either shared or private to a particular cube. The dimension object doesn't actually know which; <A HREF="../../mondrian/olap/Schema.html" title="interface in mondrian.olap"><CODE>Schema</CODE></A> has a list of shared hierarchies (<A HREF="../../mondrian/olap/Schema.html#getSharedHierarchies()"><CODE>Schema.getSharedHierarchies()</CODE></A>), and <A HREF="../../mondrian/olap/Cube.html" title="interface in mondrian.olap"><CODE>Cube</CODE></A> has a list of dimensions (<A HREF="../../mondrian/olap/Cube.html#getDimensions()"><CODE>Cube.getDimensions()</CODE></A>). <p> If a dimension is shared between several cubes, the <A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap"><CODE>Dimension</CODE></A>objects which represent them may (or may not be) the same. (That's why there's no <code>getCube()</code> method.) <p> Furthermore, since members are created by a <A HREF="../../mondrian/rolap/MemberReader.html" title="interface in mondrian.rolap"><CODE>MemberReader</CODE></A>which belongs to the <A HREF="../../mondrian/rolap/RolapHierarchy.html" title="class in mondrian.rolap"><CODE>RolapHierarchy</CODE></A>, you will the members will be the same too. For example, if you query <code>[Product].[Beer]</code> from the <code>Sales</code> and <code>Warehouse</code> cubes, you will get the same <A HREF="../../mondrian/rolap/RolapMember.html" title="class in mondrian.rolap"><CODE>RolapMember</CODE></A>object. (<A HREF="../../mondrian/rolap/RolapSchema.html#mapSharedHierarchyToReader"><CODE>RolapSchema.mapSharedHierarchyToReader</CODE></A> holds the mapping. I don't know whether it's still necessary.)<P><P><DL><DT><B>Since:</B></DT> <DD>10 August, 2001</DD><DT><B>Version:</B></DT> <DD>$Id: //open/mondrian-release/3.0/src/main/mondrian/rolap/RolapDimension.java#3 $</DD><DT><B>Author:</B></DT> <DD>jhyde</DD></DL><HR><P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR></TABLE> <A NAME="fields_inherited_from_class_mondrian.olap.DimensionBase"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class mondrian.olap.<A HREF="../../mondrian/olap/DimensionBase.html" title="class in mondrian.olap">DimensionBase</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/olap/DimensionBase.html#description">description</A>, <A HREF="../../mondrian/olap/DimensionBase.html#dimensionType">dimensionType</A>, <A HREF="../../mondrian/olap/DimensionBase.html#hierarchies">hierarchies</A>, <A HREF="../../mondrian/olap/DimensionBase.html#name">name</A>, <A HREF="../../mondrian/olap/DimensionBase.html#uniqueName">uniqueName</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_mondrian.olap.OlapElementBase"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class mondrian.olap.<A HREF="../../mondrian/olap/OlapElementBase.html" title="class in mondrian.olap">OlapElementBase</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/olap/OlapElementBase.html#caption">caption</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_mondrian.olap.Dimension"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface mondrian.olap.<A HREF="../../mondrian/olap/Dimension.html" title="interface in mondrian.olap">Dimension</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/olap/Dimension.html#MEASURES_NAME">MEASURES_NAME</A>, <A HREF="../../mondrian/olap/Dimension.html#MEASURES_UNIQUE_NAME">MEASURES_UNIQUE_NAME</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../mondrian/rolap/RolapDimension.html#RolapDimension(mondrian.rolap.RolapSchema, mondrian.rolap.RolapCube, mondrian.olap.MondrianDef.Dimension, mondrian.olap.MondrianDef.CubeDimension)">RolapDimension</A></B>(<A HREF="../../mondrian/rolap/RolapSchema.html" title="class in mondrian.rolap">RolapSchema</A> schema, <A HREF="../../mondrian/rolap/RolapCube.html" title="class in mondrian.rolap">RolapCube</A> cube, <A HREF="../../mondrian/olap/MondrianDef.Dimension.html" title="class in mondrian.olap">MondrianDef.Dimension</A> xmlDimension, <A HREF="../../mondrian/olap/MondrianDef.CubeDimension.html" title="class in mondrian.olap">MondrianDef.CubeDimension</A> xmlCubeDimension)</CODE><BR> Creates a dimension from an XML definition.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../mondrian/rolap/RolapDimension.html#RolapDimension(mondrian.olap.Schema, java.lang.String, mondrian.olap.DimensionType)">RolapDimension</A></B>(<A HREF="../../mondrian/olap/Schema.html" title="interface in mondrian.olap">Schema</A> schema, <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/DimensionType.html" title="enum in mondrian.olap">DimensionType</A> dimensionType)</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Hierarchy.html" title="interface in mondrian.olap">Hierarchy</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapDimension.html#getHierarchy()">getHierarchy</A></B>()</CODE><BR> Returns the hierarchy of an expression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.apache.log4j.Logger</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapDimension.html#getLogger()">getLogger</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapDimension.html#getOrdinal(mondrian.olap.Cube)">getOrdinal</A></B>(<A HREF="../../mondrian/olap/Cube.html" title="interface in mondrian.olap">Cube</A> cube)</CODE><BR> Returns dimension's ordinal within a given cube.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Schema.html" title="interface in mondrian.olap">Schema</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapDimension.html#getSchema()">getSchema</A></B>()</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?