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 Object implements RolapResult.CellInfoContainer
Implementation ofRolapResult.CellInfoContainerwhich uses aMapto 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
createmethod 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 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.
-
-
-
Constructor Detail
-
CellInfoMap
CellInfoMap(CellKey point)
Creates a CellInfoMap- Parameters:
point- Cell position
-
-
Method Detail
-
size
public int size()
Description copied from interface:RolapResult.CellInfoContainerReturns the number of CellInfo objects in this container.- Specified by:
sizein interfaceRolapResult.CellInfoContainer- Returns:
- the number of CellInfo objects.
-
trimToSize
public void trimToSize()
Description copied from interface:RolapResult.CellInfoContainerReduces 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:
trimToSizein interfaceRolapResult.CellInfoContainer
-
clear
public void clear()
Description copied from interface:RolapResult.CellInfoContainerRemoves all CellInfo objects from container. Does not change the size of the internal data structures.- Specified by:
clearin interfaceRolapResult.CellInfoContainer
-
create
public RolapResult.CellInfo create(int[] pos)
Description copied from interface:RolapResult.CellInfoContainerCreates a new CellInfo object, adds it to the container a locationposand returns it.- Specified by:
createin 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.CellInfoContainerGets the CellInfo object at the locationpos.- Specified by:
lookupin interfaceRolapResult.CellInfoContainer- Parameters:
pos- where to find the CellInfo object.- Returns:
- the CellInfo found or null.
-
-