Package mondrian.rolap
Class RolapResult.CellInfoMap
- java.lang.Object
-
- mondrian.rolap.RolapResult.CellInfoMap
-
- All Implemented Interfaces:
RolapResult.CellInfoContainer
- Enclosing class:
- RolapResult
static class RolapResult.CellInfoMap extends java.lang.Object implements RolapResult.CellInfoContainer
Implementation ofRolapResult.CellInfoContainer
which uses aMap
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
Constructors Constructor Description CellInfoMap(CellKey point)
Creates a CellInfoMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Removes all CellInfo objects from container.RolapResult.CellInfo
create(int[] pos)
Creates a new CellInfo object, adds it to the container a locationpos
and returns it.RolapResult.CellInfo
lookup(int[] pos)
Gets the CellInfo object at the locationpos
.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.
-
-
-
Constructor Detail
-
CellInfoMap
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 interfaceRolapResult.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 interfaceRolapResult.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 interfaceRolapResult.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 locationpos
and returns it.- Specified by:
create
in interfaceRolapResult.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 locationpos
.- Specified by:
lookup
in interfaceRolapResult.CellInfoContainer
- Parameters:
pos
- where to find the CellInfo object.- Returns:
- the CellInfo found or null.
-
-