Package mondrian.rolap.agg
Class DenseObjectSegmentBody
- java.lang.Object
-
- mondrian.rolap.agg.AbstractSegmentBody
-
- mondrian.rolap.agg.DenseObjectSegmentBody
-
- All Implemented Interfaces:
Serializable,SegmentBody
class DenseObjectSegmentBody extends AbstractSegmentBody
Implementation of a segment body which stores the data inside a dense array of Java objects.- Author:
- LBoudreau
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.agg.AbstractSegmentBody
axisValueSets
-
-
Constructor Summary
Constructors Constructor Description DenseObjectSegmentBody(Object[] values, List<Pair<SortedSet<Comparable>,Boolean>> axes)Creates a DenseObjectSegmentBody.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetObject(int i)protected intgetSize()Returns the overall amount of stored elements, including those, that are considered to be null.ObjectgetValueArray()Returns an array of values.-
Methods inherited from class mondrian.rolap.agg.AbstractSegmentBody
getAxisValueSets, getEffectiveSize, getNullAxisFlags, getNullValueIndicators, getValueMap
-
-
-
-
Method Detail
-
getValueArray
public Object getValueArray()
Description copied from interface:SegmentBodyReturns an array of values.Use only for dense segments.
- Specified by:
getValueArrayin interfaceSegmentBody- Overrides:
getValueArrayin classAbstractSegmentBody- Returns:
- An array of values
-
getObject
protected Object getObject(int i)
- Specified by:
getObjectin classAbstractSegmentBody
-
getSize
protected int getSize()
Description copied from class:AbstractSegmentBodyReturns the overall amount of stored elements, including those, that are considered to be null.- Specified by:
getSizein classAbstractSegmentBody- Returns:
- the size of stored data
-
-