|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.DenseSegmentDataset
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.
| Constructor Summary | |
|---|---|
DenseSegmentDataset(Segment segment,
java.lang.Object[] values)
Creates a DenseSegmentDataset. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(CellKey key)
Returns the value at a given coordinate. |
double |
getBytes()
Returns the number of bytes occupied by this dataset. |
java.util.Iterator<java.util.Map.Entry<CellKey,java.lang.Object>> |
iterator()
|
void |
put(CellKey key,
java.lang.Object value)
|
(package private) void |
set(int k,
java.lang.Object o)
Sets the value a given ordinal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DenseSegmentDataset(Segment segment,
java.lang.Object[] values)
segment - Segmentvalues - Array of values, one for each possible coordinate| Method Detail |
|---|
public java.lang.Object get(CellKey key)
SegmentDataset
get in interface SegmentDatasetkey - Coordinate position
public double getBytes()
SegmentDataset
getBytes in interface SegmentDataset
public void put(CellKey key,
java.lang.Object value)
put in interface SegmentDatasetpublic java.util.Iterator<java.util.Map.Entry<CellKey,java.lang.Object>> iterator()
iterator in interface java.lang.Iterable<java.util.Map.Entry<CellKey,java.lang.Object>>
void set(int k,
java.lang.Object o)
k - Ordinalo - Value
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||