Package mondrian.rolap
Class CellKey.Generator
- java.lang.Object
-
- mondrian.rolap.CellKey.Generator
-
- Enclosing interface:
- CellKey
public abstract static class CellKey.Generator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Generator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getOffset(int[] ordinals, int[] axisMultipliers)
static CellKey
newCellKey(int size)
Creates a CellKey with a given number of axes.static CellKey
newCellKey(int[] pos)
Creates a CellKey populated with the given coordinates.(package private) static CellKey
newManyCellKey(int size)
Creates a CellKey implemented by an array to hold the coordinates, regardless of the size.
-
-
-
Method Detail
-
newCellKey
public static CellKey newCellKey(int size)
Creates a CellKey with a given number of axes.- Parameters:
size
- Number of axes- Returns:
- new CellKey
-
newCellKey
public static CellKey newCellKey(int[] pos)
Creates a CellKey populated with the given coordinates.- Parameters:
pos
- Coordinate array- Returns:
- CellKey
-
newManyCellKey
static CellKey newManyCellKey(int size)
Creates a CellKey implemented by an array to hold the coordinates, regardless of the size.This is used for testing only. The CellKey will fail to compare equal to naturally created keys of size 0, 1, 2 or 3.
- Parameters:
size
- Number of coordinates- Returns:
- CallKey
-
getOffset
public static int getOffset(int[] ordinals, int[] axisMultipliers)
-
-