|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.RolapCacheRegion
public class RolapCacheRegion
A RolapCacheRegion
represents a region of multidimensional space
in the cache.
The region is represented in terms of the columns of a given
RolapStar
, and constraints on those columns.
Compare with CacheControl.CellRegion
: a
CellRegion
is in terms of Member
objects
(logical); whereas a RolapCacheRegion
is in terms of columns
(physical).
Constructor Summary | |
---|---|
RolapCacheRegion(RolapStar star,
List<RolapStar.Measure> starMeasureList)
|
Method Summary | |
---|---|
void |
addPredicate(RolapStar.Column column,
StarColumnPredicate predicate)
Adds a predicate which applies to a single column. |
void |
addPredicate(StarPredicate predicate)
Adds a predicate which applies to multiple columns. |
BitKey |
getConstrainedColumnsBitKey()
|
StarColumnPredicate |
getPredicate(int columnOrdinal)
Returns the predicate associated with the columnOrdinal th column. |
Collection<StarPredicate> |
getPredicates()
Returns a collection of all multi-column predicates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RolapCacheRegion(RolapStar star, List<RolapStar.Measure> starMeasureList)
Method Detail |
---|
public BitKey getConstrainedColumnsBitKey()
public void addPredicate(RolapStar.Column column, StarColumnPredicate predicate)
column
- Constrained columnpredicate
- Predicatepublic StarColumnPredicate getPredicate(int columnOrdinal)
columnOrdinal
th column.
columnOrdinal
- Column ordinal
public void addPredicate(StarPredicate predicate)
The typical example of a multi-column predicate is a member constraint. For example, the constraint "m between 1997.Q3 and 1998.Q2" translates into "year = 1997 and quarter >= Q3 or year = 1998 and quarter <= Q2".
predicate
- Predicatepublic Collection<StarPredicate> getPredicates()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |