Package mondrian.spi
Interface SegmentBody
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractSegmentBody
,DenseDoubleSegmentBody
,DenseIntSegmentBody
,DenseObjectSegmentBody
,SparseSegmentBody
public interface SegmentBody extends java.io.Serializable
SegmentBody is the object which contains the cached data of a Segment. They are stored inside aSegmentCache
and can be retrieved by aSegmentHeader
key.The segment body objects are immutable and fully serializable.
- Author:
- LBoudreau
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.SortedSet<java.lang.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.java.util.BitSet
getNullValueIndicators()
Returns a bit-set indicating whether values are null.java.lang.Object
getValueArray()
Returns an array of values.java.util.Map<CellKey,java.lang.Object>
getValueMap()
Converts contents of this segment into a cellkey/value map.
-
-
-
Method Detail
-
getValueMap
java.util.Map<CellKey,java.lang.Object> getValueMap()
Converts contents of this segment into a cellkey/value map. Use only for sparse segments.- Returns:
- Map containing cell values keyed by their coordinates
-
getValueArray
java.lang.Object getValueArray()
Returns an array of values.Use only for dense segments.
- Returns:
- An array of values
-
getNullValueIndicators
java.util.BitSet getNullValueIndicators()
Returns a bit-set indicating whether values are null. The ordinals in the bit-set correspond to the indexes in the array returned fromgetValueArray()
.Use only for dense segments of native values.
- Returns:
- Indicators
-
getAxisValueSets
java.util.SortedSet<java.lang.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.
-
-