mondrian.rolap.agg
Class DenseObjectSegmentBody
java.lang.Object
mondrian.rolap.agg.AbstractSegmentBody
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 valuesaxes - Axes
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