|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.CellKey.One
public static class CellKey.One
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface mondrian.rolap.CellKey |
|---|
CellKey.Four, CellKey.Generator, CellKey.Many, CellKey.One, CellKey.Three, CellKey.Two, CellKey.Zero |
| Method Summary | |
|---|---|
CellKey.One |
copy()
Returns a mutable copy of this CellKey. |
boolean |
equals(Object o)
|
int |
getAxis(int axis)
Returns the axisth axis value. |
int |
getOffset(int[] axisMultipliers)
Returns the offset of the cell in a raster-scan order. |
int[] |
getOrdinals()
Returns the axis keys as an array. |
int |
hashCode()
|
void |
setAxis(int axis,
int value)
Sets a given axis. |
void |
setOrdinals(int[] pos)
This method make a copy of the int array parameter. |
int |
size()
Returns the number of axes. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int size()
CellKey
size in interface CellKeypublic int[] getOrdinals()
CellKeyNote: caller should treat the array as immutable. If the contents of the array are modified, behavior is unspecified.
getOrdinals in interface CellKeypublic void setOrdinals(int[] pos)
CellKey
setOrdinals in interface CellKeypos - Array of axis keyspublic int getAxis(int axis)
CellKeyaxisth axis value.
getAxis in interface CellKeyaxis - Axis ordinal
axisth axis
public void setAxis(int axis,
int value)
CellKey
setAxis in interface CellKeyaxis - Axis ordinalvalue - Valuepublic CellKey.One copy()
CellKey
copy in interface CellKeypublic int getOffset(int[] axisMultipliers)
CellKeyFor example, if the axes have lengths {2, 5, 10} then cell (2, 3, 4) has offset
(2 * mulitiplers[0]) + (3 * multipliers[1]) + (4 * multipliers[2])
= (2 * 50) + (3 * 10) + (4 * 1)
= 134
The multipliers are the product of the lengths of all later axes, in this case (50, 10, 1).
getOffset in interface CellKeyaxisMultipliers - For each axis, the product of the lengths of later
axes
public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||