Package mondrian.util
Interface SpatialValueTree2.SpatialDimension
-
- Enclosing interface:
- SpatialValueTree2
public static interface SpatialValueTree2.SpatialDimension
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getValues()Declares that a particular dimension has a finite set of values.intordinal()Ordinal of dimension.
-
-
-
Method Detail
-
ordinal
int ordinal()
Ordinal of dimension. Dimension ordinals are unique and contiguous within a tree.- Returns:
- ordinal of dimension
-
getValues
Object[] getValues()
Declares that a particular dimension has a finite set of values. With this information, an implementation may be able to perform rollups that it would not otherwise.For example, if the user asks for cell (year=2010, measure=sales) and the tree has regions (year=2010, gender=M, measure=sales) and (year=2010, gender=F, measure=sales) then the tree can compute the cell only if it knows that the only values of gender are {M, F}.
Returns null if the set of values is unbounded, not known, or too large to be any use in optimizing.
The values are distinct and sorted (per
Comparable, and all not null. If you wish to represent a null value, use a dummy object.The client must not modify the array.
- Returns:
- set of values that this dimension may have
-
-