mondrian.rolap.agg
Interface SegmentBody

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractSegmentBody, DenseDoubleSegmentBody, DenseIntSegmentBody, DenseObjectSegmentBody, SparseSegmentBody

public interface SegmentBody
extends Serializable

SegmentBody is the object which contains the cached data of a Segment. They are stored inside a SegmentCache and can be retrieved by a SegmentHeader key.

The segment body objects are immutable and fully serializable.

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

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.
 SortedSet<Comparable<?>>[] getAxisValueSets()
          Returns the cached axis value sets to be used as an initializer for the segment's axis.
 boolean[] getNullAxisFlags()
          Returns an array of boolean values which identify which axis of the cached segment contained null values.
 

Method Detail

createSegmentDataset

SegmentDataset createSegmentDataset(Segment segment)
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.

getAxisValueSets

SortedSet<Comparable<?>>[] getAxisValueSets()
Returns the cached axis value sets to be used as an initializer for the segment's axis.

Returns:
An array of SortedSets which was cached previously.

getNullAxisFlags

boolean[] getNullAxisFlags()
Returns an array of boolean values which identify which axis of the cached segment contained null values.

Returns:
An array of boolean values.

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