mondrian.rolap
Class CellKey.Many

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

public static class CellKey.Many
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
 
Constructor Summary
protected CellKey.Many(int[] ordinals)
          Creates a Many.
 
Method Summary
 CellKey.Many 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellKey.Many

protected CellKey.Many(int[] ordinals)
Creates a Many.

Parameters:
ordinals - Ordinates
Method Detail

size

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

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

setOrdinals

public final 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

getOrdinals

public final 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

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

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

toString

public String toString()
Overrides:
toString in class Object

copy

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

Specified by:
copy in interface CellKey
Returns:
Mutable copy

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

SourceForge.net_Logo