mondrian.rolap.agg
Class DenseNativeSegmentDataset

java.lang.Object
  extended by mondrian.rolap.agg.DenseSegmentDataset
      extended by mondrian.rolap.agg.DenseNativeSegmentDataset
All Implemented Interfaces:
Iterable<Map.Entry<CellKey,Object>>, SegmentDataset
Direct Known Subclasses:
DenseDoubleSegmentDataset, DenseIntSegmentDataset

abstract class DenseNativeSegmentDataset
extends DenseSegmentDataset

Implementation of DenseSegmentDataset that stores values of type double.

Author:
jhyde

Field Summary
protected  BitSet nullIndicators
           
 
Fields inherited from class mondrian.rolap.agg.DenseSegmentDataset
axisMultipliers
 
Constructor Summary
DenseNativeSegmentDataset(SegmentAxis[] axes, BitSet nullIndicators)
          Creates a DenseNativeSegmentDataset.
 
Method Summary
 boolean isNull(CellKey key)
          Returns whether the cell at a given coordinate is null.
protected  boolean isNull(int offset)
          Returns whether the value at the given offset 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 mondrian.rolap.agg.SegmentDataset
createSegmentBody, exists, getType, populateFrom, populateFrom
 

Field Detail

nullIndicators

protected final BitSet nullIndicators
Constructor Detail

DenseNativeSegmentDataset

DenseNativeSegmentDataset(SegmentAxis[] axes,
                          BitSet nullIndicators)
Creates a DenseNativeSegmentDataset.

Parameters:
axes - Segment axes, containing actual column values
nullIndicators - Null indicators
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

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads