mondrian.rolap
Class Modulos.Three
java.lang.Object
mondrian.rolap.Modulos.Base
mondrian.rolap.Modulos.Three
- All Implemented Interfaces:
- Modulos
- Enclosing interface:
- Modulos
public static class Modulos.Three
- extends Modulos.Base
-
-
Method Summary |
int |
getCellOrdinal(int[] pos)
Converts a set of cell coordinates to a cell ordinal. |
int[] |
getCellPos(int cellOrdinal)
Converts a cell ordinal to a set of cell coordinates. |
getCellPos
public final int[] getCellPos(int cellOrdinal)
- Description copied from interface:
Modulos
- Converts a cell ordinal to a set of cell coordinates. Converse of
Modulos.getCellOrdinal(int[])
. For example, if this result is 10 x 10 x 10,
then cell ordinal 537 has coordinates (5, 3, 7).
- Specified by:
getCellPos
in interface Modulos
- Specified by:
getCellPos
in class Modulos.Base
- Parameters:
cellOrdinal
- Cell ordinal
- Returns:
- cell coordinates
getCellOrdinal
public final int getCellOrdinal(int[] pos)
- Description copied from interface:
Modulos
- Converts a set of cell coordinates to a cell ordinal. Converse of
Modulos.getCellPos(int)
.
- Specified by:
getCellOrdinal
in interface Modulos
- Specified by:
getCellOrdinal
in class Modulos.Base
- Parameters:
pos
- Cell coordinates
- Returns:
- cell ordinal