mondrian.rolap.agg
Class DenseObjectSegmentBody

java.lang.Object
  extended by mondrian.rolap.agg.AbstractSegmentBody
      extended by mondrian.rolap.agg.DenseObjectSegmentBody
All Implemented Interfaces:
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
DenseObjectSegmentBody(Object[] values, List<Pair<SortedSet<Comparable>,Boolean>> axes)
          Creates a DenseObjectSegmentBody.
 
Method Summary
protected  Object getObject(int i)
           
protected  int getSize()
           
 Object getValueArray()
          Returns an array of values.
 
Methods inherited from class mondrian.rolap.agg.AbstractSegmentBody
getAxisValueSets, getIndicators, getNullAxisFlags, getValueMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DenseObjectSegmentBody

DenseObjectSegmentBody(Object[] values,
                       List<Pair<SortedSet<Comparable>,Boolean>> axes)
Creates a DenseObjectSegmentBody.

Stores the given array of cell values; caller must not modify it afterwards.

Parameters:
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

getObject

protected Object getObject(int i)
Specified by:
getObject in class AbstractSegmentBody

getSize

protected int getSize()
Specified by:
getSize in class AbstractSegmentBody

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