mondrian.rolap
Class RolapResult.CellInfoMap

java.lang.Object
  extended by mondrian.rolap.RolapResult.CellInfoMap
All Implemented Interfaces:
RolapResult.CellInfoContainer
Enclosing class:
RolapResult

static class RolapResult.CellInfoMap
extends Object
implements RolapResult.CellInfoContainer

Implementation of RolapResult.CellInfoContainer which uses a Map to store CellInfo Objects.

Note that the CellKey point instance variable is the same Object (NOT a copy) that is used and modified during the recursive calls to executeStripe - the create method relies on this fact.

 

Constructor Summary
RolapResult.CellInfoMap(CellKey point)
          Creates a CellInfoMap
 
Method Summary
 void clear()
          Removes all CellInfo objects from container.
 RolapResult.CellInfo create(int[] pos)
          Creates a new CellInfo object, adds it to the container a location pos and returns it.
 RolapResult.CellInfo lookup(int[] pos)
          Gets the CellInfo object at the location pos.
 int size()
          Returns the number of CellInfo objects in this container.
 void trimToSize()
          Reduces the size of the internal data structures needed to support the current entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolapResult.CellInfoMap

RolapResult.CellInfoMap(CellKey point)
Creates a CellInfoMap

Parameters:
point - Cell position
Method Detail

size

public int size()
Description copied from interface: RolapResult.CellInfoContainer
Returns the number of CellInfo objects in this container.

Specified by:
size in interface RolapResult.CellInfoContainer
Returns:
the number of CellInfo objects.

trimToSize

public void trimToSize()
Description copied from interface: RolapResult.CellInfoContainer
Reduces the size of the internal data structures needed to support the current entries. This should be called after all CellInfo objects have been added to container.

Specified by:
trimToSize in interface RolapResult.CellInfoContainer

clear

public void clear()
Description copied from interface: RolapResult.CellInfoContainer
Removes all CellInfo objects from container. Does not change the size of the internal data structures.

Specified by:
clear in interface RolapResult.CellInfoContainer

create

public RolapResult.CellInfo create(int[] pos)
Description copied from interface: RolapResult.CellInfoContainer
Creates a new CellInfo object, adds it to the container a location pos and returns it.

Specified by:
create in interface RolapResult.CellInfoContainer
Parameters:
pos - where to store CellInfo object.
Returns:
the newly create CellInfo object.

lookup

public RolapResult.CellInfo lookup(int[] pos)
Description copied from interface: RolapResult.CellInfoContainer
Gets the CellInfo object at the location pos.

Specified by:
lookup in interface RolapResult.CellInfoContainer
Parameters:
pos - where to find the CellInfo object.
Returns:
the CellInfo found or null.

SourceForge.net_Logo