static class RolapResult.CellInfoMap extends Object implements RolapResult.CellInfoContainer
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 and Description |
|---|
RolapResult.CellInfoMap(CellKey point)
Creates a CellInfoMap
|
| Modifier and Type | Method and 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 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.
|
RolapResult.CellInfoMap(CellKey point)
point - Cell positionpublic int size()
RolapResult.CellInfoContainersize in interface RolapResult.CellInfoContainerpublic void trimToSize()
RolapResult.CellInfoContainertrimToSize in interface RolapResult.CellInfoContainerpublic void clear()
RolapResult.CellInfoContainerclear in interface RolapResult.CellInfoContainerpublic RolapResult.CellInfo create(int[] pos)
RolapResult.CellInfoContainerpos and returns it.create in interface RolapResult.CellInfoContainerpos - where to store CellInfo object.public RolapResult.CellInfo lookup(int[] pos)
RolapResult.CellInfoContainerpos.lookup in interface RolapResult.CellInfoContainerpos - where to find the CellInfo object.