|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.rolap.agg.SparseSegmentDataset
class SparseSegmentDataset
A SparseSegmentDataset
is a means of storing segment values
which is suitable when few of the combinations of keys have a value present.
The storage requirements are as follows. Key is 1 word for each dimension. Hashtable entry is 3 words. Value is 1 word. Total space is (4 + d) * v. (May also need hash table to ensure that values are only stored once.)
NOTE: This class is not synchronized.
Constructor Summary | |
---|---|
SparseSegmentDataset(Segment segment)
|
Method Summary | |
---|---|
java.lang.Object |
get(CellKey pos)
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
SparseSegmentDataset(Segment segment)
Method Detail |
---|
public java.lang.Object get(CellKey pos)
SegmentDataset
get
in interface SegmentDataset
pos
- Coordinate position
public void put(CellKey key, java.lang.Object value)
put
in interface SegmentDataset
public 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>>
public double getBytes()
SegmentDataset
getBytes
in interface SegmentDataset
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |