|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.DenseSegmentDataset
mondrian.rolap.agg.DenseObjectSegmentDataset
class DenseObjectSegmentDataset
Implementation of DenseSegmentDataset that stores
values of type Object.
The storage requirements are as follows. Table requires 1 word per cell.
| Field Summary | |
|---|---|
(package private) Object[] |
values
|
| Fields inherited from class mondrian.rolap.agg.DenseSegmentDataset |
|---|
axisMultipliers |
| Constructor Summary | |
|---|---|
DenseObjectSegmentDataset(SegmentAxis[] axes,
int size)
Creates a DenseSegmentDataset. |
|
DenseObjectSegmentDataset(SegmentAxis[] axes,
Object[] values)
Creates and populates a DenseSegmentDataset. |
|
| Method Summary | |
|---|---|
SegmentBody |
createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
Return an immutable, final and serializable implementation of a SegmentBody in order to cache this dataset. |
boolean |
exists(CellKey pos)
Returns whether there is a value at a given coordinate. |
Object |
getObject(CellKey key)
Returns the value at a given coordinate, as an Object. |
protected Object |
getObject(int i)
|
protected int |
getSize()
|
SqlStatement.Type |
getType()
Returns the SQL type of the data contained in this dataset. |
boolean |
isNull(CellKey pos)
Returns whether the cell at a given coordinate is null. |
void |
populateFrom(int[] pos,
SegmentDataset data,
CellKey key)
|
void |
populateFrom(int[] pos,
SegmentLoader.RowList rowList,
int column)
Sets the value a given ordinal. |
void |
put(CellKey key,
Object value)
|
| Methods inherited from class mondrian.rolap.agg.DenseSegmentDataset |
|---|
getBytes, getDouble, getInt, getOffset, getOffset, iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final Object[] values
| Constructor Detail |
|---|
DenseObjectSegmentDataset(SegmentAxis[] axes,
int size)
axes - Segment axes, containing actual column valuessize - Number of coordinates
DenseObjectSegmentDataset(SegmentAxis[] axes,
Object[] values)
axes - Axesvalues - Data set| Method Detail |
|---|
public Object getObject(CellKey key)
SegmentDatasetObject.
getObject in interface SegmentDatasetgetObject in class DenseSegmentDatasetkey - Coordinate position
public boolean isNull(CellKey pos)
SegmentDataset
pos - Coordinate position
public boolean exists(CellKey pos)
SegmentDataset
pos - Coordinate position
public void populateFrom(int[] pos,
SegmentDataset data,
CellKey key)
public void populateFrom(int[] pos,
SegmentLoader.RowList rowList,
int column)
SegmentDataset
pos - OrdinalrowList - Row listcolumn - Column of row listpublic SqlStatement.Type getType()
SegmentDataset
public void put(CellKey key,
Object value)
protected Object getObject(int i)
getObject in class DenseSegmentDatasetprotected int getSize()
getSize in class DenseSegmentDatasetpublic SegmentBody createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
SegmentDataset
axes - An array with, for each axis, the set of axis values, sorted
in natural order, and a flag saying whether the null value is also
present.
This is supplied by the SegmentLoader.
SegmentBody.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||