Package mondrian.rolap
Interface RolapResult.CellInfoContainer
-
- All Known Implementing Classes:
RolapResult.CellInfoMap,RolapResult.CellInfoPool
- Enclosing class:
- RolapResult
static interface RolapResult.CellInfoContainerAPI for the creation and lookup ofRolapResult.CellInfoobjects. 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 voidclear()Removes all CellInfo objects from container.RolapResult.CellInfocreate(int[] pos)Creates a new CellInfo object, adds it to the container a locationposand returns it.RolapResult.CellInfolookup(int[] pos)Gets the CellInfo object at the locationpos.intsize()Returns the number of CellInfo objects in this container.voidtrimToSize()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 locationposand 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.
-
-