Package mondrian.rolap
Class Modulos.Two
java.lang.Object
mondrian.rolap.Modulos.Base
mondrian.rolap.Modulos.Two
- All Implemented Interfaces:
Modulos
- Enclosing interface:
- Modulos
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.rolap.Modulos
Modulos.Base, Modulos.Generator, Modulos.Many, Modulos.One, Modulos.Three, Modulos.Two, Modulos.Zero
-
Field Summary
Fields inherited from class mondrian.rolap.Modulos.Base
modulos
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
getCellOrdinal
(int[] pos) Converts a set of cell coordinates to a cell ordinal.final int[]
getCellPos
(int cellOrdinal) Converts a cell ordinal to a set of cell coordinates.Methods inherited from class mondrian.rolap.Modulos.Base
toString
-
Method Details
-
getCellPos
public final int[] getCellPos(int cellOrdinal) Description copied from interface:Modulos
Converts a cell ordinal to a set of cell coordinates. Converse ofModulos.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 interfaceModulos
- Specified by:
getCellPos
in classModulos.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 ofModulos.getCellPos(int)
.- Specified by:
getCellOrdinal
in interfaceModulos
- Specified by:
getCellOrdinal
in classModulos.Base
- Parameters:
pos
- Cell coordinates- Returns:
- cell ordinal
-