mondrian.rolap.agg
Class DenseDoubleSegmentBody
java.lang.Object
mondrian.rolap.agg.AbstractSegmentBody
mondrian.rolap.agg.DenseDoubleSegmentBody
- All Implemented Interfaces:
- Serializable, SegmentBody
class DenseDoubleSegmentBody
- extends AbstractSegmentBody
Implementation of a segment body which stores the data inside
a dense primitive array of double precision numbers.
- Author:
- LBoudreau
DenseDoubleSegmentBody
DenseDoubleSegmentBody(BitSet nullIndicators,
double[] values,
List<Pair<SortedSet<Comparable>,Boolean>> axes)
- Creates a DenseDoubleSegmentBody.
Stores the given array of cell values and null indicators; caller must
not modify them afterwards.
- Parameters:
nullIndicators - Null indicatorsvalues - Cell valuesaxes - Axes
getValueArray
public Object getValueArray()
- Description copied from interface:
SegmentBody
- Returns an array of values. Use only for dense segments.
- Specified by:
getValueArray in interface SegmentBody- Overrides:
getValueArray in class AbstractSegmentBody
- Returns:
- An array of values
getIndicators
public BitSet getIndicators()
- Description copied from interface:
SegmentBody
- Returns a bitset indicating whether values are null.
Use only for dense segments.
- Specified by:
getIndicators in interface SegmentBody- Overrides:
getIndicators in class AbstractSegmentBody
- Returns:
- Indicators
getSize
protected int getSize()
- Specified by:
getSize in class AbstractSegmentBody
getObject
protected Object getObject(int i)
- Specified by:
getObject in class AbstractSegmentBody
toString
public String toString()
- Overrides:
toString in class Object