mondrian.rolap
Class CellKey.Zero

java.lang.Object
  extended by mondrian.rolap.CellKey.Zero
All Implemented Interfaces:
CellKey
Enclosing interface:
CellKey

public static class CellKey.Zero
extends Object
implements CellKey

 

Nested Class Summary
 
Nested classes/interfaces inherited from interface mondrian.rolap.CellKey
CellKey.Generator, CellKey.Many, CellKey.One, CellKey.Three, CellKey.Two, CellKey.Zero
 
Field Summary
static CellKey.Zero INSTANCE
           
 
Method Summary
 CellKey.Zero copy()
          Returns a mutable copy of this CellKey.
 boolean equals(Object o)
           
 int getAxis(int axis)
          Returns the axisth axis value.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final CellKey.Zero INSTANCE
Method Detail

copy

public CellKey.Zero copy()
Description copied from interface: CellKey
Returns a mutable copy of this CellKey.

Specified by:
copy in interface CellKey
Returns:
Mutable copy

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

size

public int size()
Description copied from interface: CellKey
Returns the number of axes.

Specified by:
size in interface CellKey
Returns:
number of axes

getOrdinals

public int[] getOrdinals()
Description copied from interface: CellKey
Returns the axis keys as an array.

Note: caller should treat the array as immutable. If the contents of the array are modified, behavior is unspecified.

Specified by:
getOrdinals in interface CellKey
Returns:
Array of axis keys

setOrdinals

public void setOrdinals(int[] pos)
Description copied from interface: CellKey
This method make a copy of the int array parameter. Throws a RuntimeException if the int array size is not the size of the CellKey.

Specified by:
setOrdinals in interface CellKey
Parameters:
pos - Array of axis keys

getAxis

public int getAxis(int axis)
Description copied from interface: CellKey
Returns the axisth axis value.

Specified by:
getAxis in interface CellKey
Parameters:
axis - Axis ordinal
Returns:
Value of the axisth axis

setAxis

public void setAxis(int axis,
                    int value)
Description copied from interface: CellKey
Sets a given axis.

Specified by:
setAxis in interface CellKey
Parameters:
axis - Axis ordinal
value - Value

SourceForge.net_Logo