mondrian.rolap
Class CellKey.Generator

java.lang.Object
  extended by mondrian.rolap.CellKey.Generator
Enclosing interface:
CellKey

public static class CellKey.Generator
extends Object

 

Constructor Summary
CellKey.Generator()
           
 
Method Summary
static CellKey newCellKey(int size)
          Creates a CellKey with a given number of axes.
static CellKey newCellKey(int[] pos)
          Creates a CellKey populated with the given coordinates.
(package private) static CellKey newManyCellKey(int size)
          Creates a CellKey implemented by an array to hold the coordinates, regardless of the size.
static CellKey newRefCellKey(int[] pos)
          Creates a CellKey based on a reference to the given coordinate array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellKey.Generator

public CellKey.Generator()
Method Detail

newCellKey

public static CellKey newCellKey(int size)
Creates a CellKey with a given number of axes.

Parameters:
size - Number of axes
Returns:
new CellKey

newCellKey

public static CellKey newCellKey(int[] pos)
Creates a CellKey populated with the given coordinates.

Parameters:
pos - Coordinate array
Returns:
CellKey

newRefCellKey

public static CellKey newRefCellKey(int[] pos)
Creates a CellKey based on a reference to the given coordinate array. Whenever the contents of the coordinate array change, the CellKey will also.

Parameters:
pos - Coordinate array
Returns:
CellKey

newManyCellKey

static CellKey newManyCellKey(int size)
Creates a CellKey implemented by an array to hold the coordinates, regardless of the size. This is used for testing only.

Parameters:
size - Number of coordinates
Returns:
CallKey

SourceForge.net_Logo