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.CellInfoContainer
size
in interface RolapResult.CellInfoContainer
public void trimToSize()
RolapResult.CellInfoContainer
trimToSize
in interface RolapResult.CellInfoContainer
public void clear()
RolapResult.CellInfoContainer
clear
in interface RolapResult.CellInfoContainer
public RolapResult.CellInfo create(int[] pos)
RolapResult.CellInfoContainer
pos
and returns it.create
in interface RolapResult.CellInfoContainer
pos
- where to store CellInfo object.public RolapResult.CellInfo lookup(int[] pos)
RolapResult.CellInfoContainer
pos
.lookup
in interface RolapResult.CellInfoContainer
pos
- where to find the CellInfo object.