mondrian.rolap.agg
Class DenseDoubleSegmentBody

java.lang.Object
  extended by mondrian.rolap.agg.AbstractSegmentBody
      extended by 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

Field Summary
 
Fields inherited from class mondrian.rolap.agg.AbstractSegmentBody
axisValueSets
 
Constructor Summary
DenseDoubleSegmentBody(BitSet nullIndicators, double[] values, List<Pair<SortedSet<Comparable>,Boolean>> axes)
          Creates a DenseDoubleSegmentBody.
 
Method Summary
 BitSet getIndicators()
          Returns a bitset indicating whether values are null.
protected  Object getObject(int i)
           
protected  int getSize()
           
 Object getValueArray()
          Returns an array of values.
 String toString()
           
 
Methods inherited from class mondrian.rolap.agg.AbstractSegmentBody
getAxisValueSets, getNullAxisFlags, getValueMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 indicators
values - Cell values
axes - Axes
Method Detail

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

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