Package mondrian.rolap.agg
Class DenseObjectSegmentBody
- java.lang.Object
-
- mondrian.rolap.agg.AbstractSegmentBody
-
- mondrian.rolap.agg.DenseObjectSegmentBody
-
- All Implemented Interfaces:
java.io.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(java.lang.Object[] values, java.util.List<Pair<java.util.SortedSet<java.lang.Comparable>,java.lang.Boolean>> axes)
Creates a DenseObjectSegmentBody.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getObject(int i)
protected int
getSize()
Returns the overall amount of stored elements, including those, that are considered to be null.java.lang.Object
getValueArray()
Returns an array of values.-
Methods inherited from class mondrian.rolap.agg.AbstractSegmentBody
getAxisValueSets, getEffectiveSize, getNullAxisFlags, getNullValueIndicators, getValueMap
-
-
-
-
Constructor Detail
-
DenseObjectSegmentBody
DenseObjectSegmentBody(java.lang.Object[] values, java.util.List<Pair<java.util.SortedSet<java.lang.Comparable>,java.lang.Boolean>> axes)
Creates a DenseObjectSegmentBody.Stores the given array of cell values; caller must not modify it afterwards.
- Parameters:
values
- Cell valuesaxes
- Axes
-
-
Method Detail
-
getValueArray
public java.lang.Object getValueArray()
Description copied from interface:SegmentBody
Returns an array of values.Use only for dense segments.
- Specified by:
getValueArray
in interfaceSegmentBody
- Overrides:
getValueArray
in classAbstractSegmentBody
- Returns:
- An array of values
-
getObject
protected java.lang.Object getObject(int i)
- Specified by:
getObject
in classAbstractSegmentBody
-
getSize
protected int getSize()
Description copied from class:AbstractSegmentBody
Returns the overall amount of stored elements, including those, that are considered to be null.- Specified by:
getSize
in classAbstractSegmentBody
- Returns:
- the size of stored data
-
-