|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.DenseSegmentDataset
abstract class DenseSegmentDataset
A DenseSegmentDataset is a means of storing segment values
which is suitable when most of the combinations of keys have a value
present.
The storage requirements are as follows. Table requires 1 word per cell.
| Field Summary | |
|---|---|
protected int[] |
axisMultipliers
|
| Constructor Summary | |
|---|---|
DenseSegmentDataset(SegmentAxis[] axes)
Creates a DenseSegmentDataset. |
|
| Method Summary | |
|---|---|
double |
getBytes()
Returns the number of bytes occupied by this dataset. |
double |
getDouble(CellKey pos)
Returns the value at a given coordinate, as a double. |
int |
getInt(CellKey pos)
Returns the value at a given coordinate, as an int. |
Object |
getObject(CellKey pos)
Returns the value at a given coordinate, as an Object. |
protected abstract Object |
getObject(int i)
|
protected int |
getOffset(int[] keys)
|
protected int |
getOffset(Object[] keys)
|
protected abstract int |
getSize()
|
Iterator<Map.Entry<CellKey,Object>> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface mondrian.rolap.agg.SegmentDataset |
|---|
createSegmentBody, exists, getType, isNull, populateFrom, populateFrom |
| Field Detail |
|---|
protected final int[] axisMultipliers
| Constructor Detail |
|---|
DenseSegmentDataset(SegmentAxis[] axes)
axes - Segment axes, containing actual column values| Method Detail |
|---|
public final double getBytes()
SegmentDataset
getBytes in interface SegmentDatasetpublic Iterator<Map.Entry<CellKey,Object>> iterator()
iterator in interface Iterable<Map.Entry<CellKey,Object>>protected abstract Object getObject(int i)
protected final int getOffset(int[] keys)
protected final int getOffset(Object[] keys)
public Object getObject(CellKey pos)
SegmentDatasetObject.
getObject in interface SegmentDatasetpos - Coordinate position
public int getInt(CellKey pos)
SegmentDatasetint.
getInt in interface SegmentDatasetpos - Coordinate position
public double getDouble(CellKey pos)
SegmentDatasetdouble.
getDouble in interface SegmentDatasetpos - Coordinate position
protected abstract int getSize()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||