Package mondrian.rolap
Interface RolapResult.CellInfoContainer
-
- All Known Implementing Classes:
RolapResult.CellInfoMap
,RolapResult.CellInfoPool
- Enclosing class:
- RolapResult
static interface RolapResult.CellInfoContainer
API for the creation and lookup ofRolapResult.CellInfo
objects. There are two implementations, one that uses a Map for storage and the other uses an ObjectPool.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
size
int size()
Returns the number of CellInfo objects in this container.- Returns:
- the number of CellInfo objects.
-
trimToSize
void trimToSize()
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.
-
clear
void clear()
Removes all CellInfo objects from container. Does not change the size of the internal data structures.
-
create
RolapResult.CellInfo create(int[] pos)
Creates a new CellInfo object, adds it to the container a locationpos
and returns it.- Parameters:
pos
- where to store CellInfo object.- Returns:
- the newly create CellInfo object.
-
lookup
RolapResult.CellInfo lookup(int[] pos)
Gets the CellInfo object at the locationpos
.- Parameters:
pos
- where to find the CellInfo object.- Returns:
- the CellInfo found or null.
-
-