Package mondrian.rolap.agg
Class DenseNativeSegmentDataset
- java.lang.Object
-
- mondrian.rolap.agg.DenseSegmentDataset
-
- mondrian.rolap.agg.DenseNativeSegmentDataset
-
- All Implemented Interfaces:
Iterable<Map.Entry<CellKey,Object>>
,SegmentDataset
- Direct Known Subclasses:
DenseDoubleSegmentDataset
,DenseIntSegmentDataset
abstract class DenseNativeSegmentDataset extends DenseSegmentDataset
Implementation ofDenseSegmentDataset
that stores values of typedouble
.- Author:
- jhyde
-
-
Field Summary
Fields Modifier and Type Field Description protected BitSet
nullValues
-
Fields inherited from class mondrian.rolap.agg.DenseSegmentDataset
axisMultipliers
-
-
Constructor Summary
Constructors Constructor Description DenseNativeSegmentDataset(SegmentAxis[] axes, BitSet nullValues)
Creates a DenseNativeSegmentDataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isNull(int offset)
Returns whether the value at the given offset is null.boolean
isNull(CellKey key)
Returns whether the cell at a given coordinate is null.-
Methods inherited from class mondrian.rolap.agg.DenseSegmentDataset
getBytes, getDouble, getInt, getObject, getObject, getOffset, getOffset, getSize, iterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface mondrian.rolap.agg.SegmentDataset
createSegmentBody, exists, getType, populateFrom, populateFrom
-
-
-
-
Field Detail
-
nullValues
protected final BitSet nullValues
-
-
Constructor Detail
-
DenseNativeSegmentDataset
DenseNativeSegmentDataset(SegmentAxis[] axes, BitSet nullValues)
Creates a DenseNativeSegmentDataset.- Parameters:
axes
- Segment axes, containing actual column valuesnullValues
- A bit-set indicating whether values are null. Each position in the bit-set corresponds to an offset in the value array. If position is null, the corresponding entry in the value array will also be 0.
-
-
Method Detail
-
isNull
public boolean isNull(CellKey key)
Description copied from interface:SegmentDataset
Returns whether the cell at a given coordinate is null.- Parameters:
key
- Coordinate position- Returns:
- Whether cell value is null
-
isNull
protected final boolean isNull(int offset)
Returns whether the value at the given offset is null.The native value at this offset will also be 0. You only need to call this method if the
getXxx
method has returned 0.- Parameters:
offset
- Cell offset- Returns:
- Whether the cell at this offset is null
-
-