mondrian.rolap.agg
Class SparseSegmentBody
java.lang.Object
mondrian.rolap.agg.AbstractSegmentBody
mondrian.rolap.agg.SparseSegmentBody
- All Implemented Interfaces:
- Serializable, SegmentBody
class SparseSegmentBody
- extends AbstractSegmentBody
Implementation of a segment body which stores the data of a
sparse segment data set into a dense array of java objects.
- Author:
- LBoudreau
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keys
final CellKey[] keys
data
final Object[] data
SparseSegmentBody
SparseSegmentBody(Map<CellKey,Object> dataToSave,
List<Pair<SortedSet<Comparable>,Boolean>> axes)
getSize
protected int getSize()
- Specified by:
getSize in class AbstractSegmentBody
getObject
protected Object getObject(int i)
- Specified by:
getObject in class AbstractSegmentBody
getValueMap
public Map<CellKey,Object> getValueMap()
- Description copied from interface:
SegmentBody
- Converts contents of this segment into a cellkey/value map. Use only
for sparse segments.
- Specified by:
getValueMap in interface SegmentBody- Overrides:
getValueMap in class AbstractSegmentBody
- Returns:
- Map containing cell values keyed by their coordinates