rolapstar.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 1,068 行 · 第 1/4 页
HTML
1,068 行
<DL><DD>Generates a unique relational join to the fact table via re-aliasing MondrianDef.Relations currently called in the RolapCubeHierarchy constructor. This should eventually be phased out and replaced with RolapStar.Table and RolapStar.Column references<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rel</CODE> - the relation needing uniqueness<DD><CODE>factForeignKey</CODE> - the foreign key of the fact table<DD><CODE>primaryKey</CODE> - the join key of the relation<DD><CODE>primaryKeyTable</CODE> - the join table of the relation<DT><B>Returns:</B><DD>if necessary a new relation that has been re-aliased</DL></DD></DL><HR><A NAME="getColumnCount()"><!-- --></A><H3>getColumnCount</H3><PRE>public int <B>getColumnCount</B>()</PRE><DL><DD>Returns this RolapStar's column count. After a star has been created with all of its columns, this is the number of columns in the star.<P><DD><DL></DL></DD></DL><HR><A NAME="prepareToLoadAggregates()"><!-- --></A><H3>prepareToLoadAggregates</H3><PRE>public void <B>prepareToLoadAggregates</B>()</PRE><DL><DD>This is a place holder in case in the future we wish to be able to reload aggregates. In that case, if aggregates had already been loaded, i.e., this star has some aggstars, then those aggstars are cleared.<P><DD><DL></DL></DD></DL><HR><A NAME="addAggStar(mondrian.rolap.aggmatcher.AggStar)"><!-- --></A><H3>addAggStar</H3><PRE>public void <B>addAggStar</B>(<A HREF="../../mondrian/rolap/aggmatcher/AggStar.html" title="class in mondrian.rolap.aggmatcher">AggStar</A> aggStar)</PRE><DL><DD>Adds an <A HREF="../../mondrian/rolap/aggmatcher/AggStar.html" title="class in mondrian.rolap.aggmatcher"><CODE>AggStar</CODE></A> to this star. <p>Internally the AggStars are added in sort order, smallest row count to biggest, so that the most efficient AggStar is encountered first; ties do not matter.<P><DD><DL></DL></DD></DL><HR><A NAME="clearAggStarList()"><!-- --></A><H3>clearAggStarList</H3><PRE>void <B>clearAggStarList</B>()</PRE><DL><DD>Set the agg star list to empty.<P><DD><DL></DL></DD></DL><HR><A NAME="reOrderAggStarList()"><!-- --></A><H3>reOrderAggStarList</H3><PRE>public void <B>reOrderAggStarList</B>()</PRE><DL><DD>Reorder the list of aggregate stars. This should be called if the algorithm used to order the AggStars has been changed.<P><DD><DL></DL></DD></DL><HR><A NAME="getAggStars()"><!-- --></A><H3>getAggStars</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><<A HREF="../../mondrian/rolap/aggmatcher/AggStar.html" title="class in mondrian.rolap.aggmatcher">AggStar</A>> <B>getAggStars</B>()</PRE><DL><DD>Returns this RolapStar's aggregate table AggStars, ordered in ascending order of size.<P><DD><DL></DL></DD></DL><HR><A NAME="getFactTable()"><!-- --></A><H3>getFactTable</H3><PRE>public <A HREF="../../mondrian/rolap/RolapStar.Table.html" title="class in mondrian.rolap">RolapStar.Table</A> <B>getFactTable</B>()</PRE><DL><DD>Returns the fact table at the center of this RolapStar.<P><DD><DL><DT><B>Returns:</B><DD>fact table</DL></DD></DL><HR><A NAME="getSqlQuery()"><!-- --></A><H3>getSqlQuery</H3><PRE>public <A HREF="../../mondrian/rolap/sql/SqlQuery.html" title="class in mondrian.rolap.sql">SqlQuery</A> <B>getSqlQuery</B>()</PRE><DL><DD>Clones an existing SqlQuery to create a new one (this cloning creates one with an empty sql query).<P><DD><DL></DL></DD></DL><HR><A NAME="getSqlQueryDialect()"><!-- --></A><H3>getSqlQueryDialect</H3><PRE>public <A HREF="../../mondrian/rolap/sql/SqlQuery.Dialect.html" title="class in mondrian.rolap.sql">SqlQuery.Dialect</A> <B>getSqlQueryDialect</B>()</PRE><DL><DD>Returns this RolapStar's SQL dialect.<P><DD><DL></DL></DD></DL><HR><A NAME="setCacheAggregations(boolean)"><!-- --></A><H3>setCacheAggregations</H3><PRE>void <B>setCacheAggregations</B>(boolean cacheAggregations)</PRE><DL><DD>Sets whether to cache database aggregation information; if false, cache is flushed after each query. <p>This method is called only by the RolapCube and is only called if caching is to be turned off. Note that the same RolapStar can be associated with more than on RolapCube. If any one of those cubes has caching turned off, then caching is turned off for all of them.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cacheAggregations</CODE> - Whether to cache database aggregation</DL></DD></DL><HR><A NAME="isCacheAggregations()"><!-- --></A><H3>isCacheAggregations</H3><PRE>boolean <B>isCacheAggregations</B>()</PRE><DL><DD>Returns whether the this RolapStar cache aggregates.<P><DD><DL><DT><B>See Also:</B><DD><A HREF="../../mondrian/rolap/RolapStar.html#setCacheAggregations(boolean)"><CODE>setCacheAggregations(boolean)</CODE></A></DL></DD></DL><HR><A NAME="clearCachedAggregations(boolean)"><!-- --></A><H3>clearCachedAggregations</H3><PRE>void <B>clearCachedAggregations</B>(boolean forced)</PRE><DL><DD>Clears the aggregate cache. This only does something if aggregate caching is disabled (see <A HREF="../../mondrian/rolap/RolapStar.html#setCacheAggregations(boolean)"><CODE>setCacheAggregations(boolean)</CODE></A>).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>forced</CODE> - If true, clears cached aggregations regardless of any other settings. If false, clears only cache from the current thread</DL></DD></DL><HR><A NAME="lookupOrCreateAggregation(mondrian.rolap.agg.AggregationKey)"><!-- --></A><H3>lookupOrCreateAggregation</H3><PRE>public <A HREF="../../mondrian/rolap/agg/Aggregation.html" title="class in mondrian.rolap.agg">Aggregation</A> <B>lookupOrCreateAggregation</B>(<A HREF="../../mondrian/rolap/agg/AggregationKey.html" title="class in mondrian.rolap.agg">AggregationKey</A> aggregationKey)</PRE><DL><DD>Looks up an aggregation or creates one if it does not exist in an atomic (synchronized) operation. <p>When a new aggregation is created, it is marked as thread local.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>aggregationKey</CODE> - this is the contrained column bitkey</DL></DD></DL><HR><A NAME="lookupAggregation(mondrian.rolap.agg.AggregationKey)"><!-- --></A><H3>lookupAggregation</H3><PRE>public <A HREF="../../mondrian/rolap/agg/Aggregation.html" title="class in mondrian.rolap.agg">Aggregation</A> <B>lookupAggregation</B>(<A HREF="../../mondrian/rolap/agg/AggregationKey.html" title="class in mondrian.rolap.agg">AggregationKey</A> aggregationKey)</PRE><DL><DD>Looks for an existing aggregation over a given set of columns, or returns <code>null</code> if there is none. <p>Thread local cache is taken first. <p>Must be called from synchronized context.<P><DD><DL></DL></DD></DL><HR><A NAME="checkAggregateModifications()"><!-- --></A><H3>checkAggregateModifications</H3><PRE>public void <B>checkAggregateModifications</B>()</PRE><DL><DD>Checks whether an aggregation has changed since the last the time loaded. <p>If so, a new thread local aggregation will be made and added after the query has finished. <p>This method should be called before a query is executed and afterwards the function <A HREF="../../mondrian/rolap/RolapStar.html#pushAggregateModificationsToGlobalCache()"><CODE>pushAggregateModificationsToGlobalCache()</CODE></A> should be called.<P><DD><DL></DL></DD></DL><HR><A NAME="pushAggregateModificationsToGlobalCache()"><!-- --></A><H3>pushAggregateModificationsToGlobalCache</H3><PRE>public void <B>pushAggregateModificationsToGlobalCache</B>()</PRE><DL><DD>Checks whether changed modifications may be pushed into global cache. <p>The method checks whether there are other running queries that are using the requested modifications. If this is the case, modifications are not pushed yet.<P><DD><DL></DL></DD></DL><HR><A NAME="setDataSource(javax.sql.DataSource)"><!-- --></A><H3>setDataSource</H3><PRE>public void <B>setDataSource</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A> dataSource)</PRE><DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?