|
|||||||||
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,
Object[] values)
Creates a DenseSegmentDataset. |
Method Summary | |
---|---|
Object |
get(CellKey key)
Returns the value at a given coordinate. |
double |
getBytes()
Returns the number of bytes occupied by this dataset. |
Iterator<Map.Entry<CellKey,Object>> |
iterator()
|
void |
put(CellKey key,
Object value)
|
(package private) void |
set(int k,
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, Object[] values)
segment
- Segmentvalues
- Array of values, one for each possible coordinateMethod Detail |
---|
public Object get(CellKey key)
SegmentDataset
get
in interface SegmentDataset
key
- Coordinate position
public double getBytes()
SegmentDataset
getBytes
in interface SegmentDataset
public void put(CellKey key, Object value)
put
in interface SegmentDataset
public Iterator<Map.Entry<CellKey,Object>> iterator()
iterator
in interface Iterable<Map.Entry<CellKey,Object>>
void set(int k, Object o)
k
- Ordinalo
- Value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |