mondrian.rolap.agg
Class SparseSegmentBody

java.lang.Object
  extended by mondrian.rolap.agg.AbstractSegmentBody
      extended by mondrian.rolap.agg.SparseSegmentBody
All Implemented Interfaces:
Serializable, SegmentBody

 class SparseSegmentBody
extends AbstractSegmentBody

Implementation of a segment body which stores the data of a sparse segment data set into a dense array of java objects.

Version:
$Id: //open/mondrian/src/main/mondrian/rolap/agg/SparseSegmentBody.java#2 $
Author:
LBoudreau

Field Summary
(package private)  Object[] data
           
(package private)  CellKey[] keys
           
 
Constructor Summary
SparseSegmentBody(Map<CellKey,Object> dataToSave, SortedSet<Comparable<?>>[] axisValueSets, boolean[] nullAxisFlags)
           
 
Method Summary
 SegmentDataset createSegmentDataset(Segment segment)
          Returns a SegmentDataset object which contains the cached data and is initialized to be used with the supplied segment.
 
Methods inherited from class mondrian.rolap.agg.AbstractSegmentBody
getAxisValueSets, getNullAxisFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

final CellKey[] keys

data

final Object[] data
Constructor Detail

SparseSegmentBody

SparseSegmentBody(Map<CellKey,Object> dataToSave,
                  SortedSet<Comparable<?>>[] axisValueSets,
                  boolean[] nullAxisFlags)
Method Detail

createSegmentDataset

public SegmentDataset createSegmentDataset(Segment segment)
Description copied from interface: SegmentBody
Returns a SegmentDataset object which contains the cached data and is initialized to be used with the supplied segment.

Parameters:
segment - Segment to which the returned dataset will be associated to.
Returns:
A SegmentDataset object which contains cached data.

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