abstract class DenseSegmentDataset extends Object implements SegmentDataset
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.
Modifier and Type | Field and Description |
---|---|
protected int[] |
axisMultipliers |
Constructor and Description |
---|
DenseSegmentDataset(SegmentAxis[] axes)
Creates a DenseSegmentDataset.
|
Modifier and Type | Method and Description |
---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSegmentBody, exists, getType, isNull, populateFrom, populateFrom
DenseSegmentDataset(SegmentAxis[] axes)
axes
- Segment axes, containing actual column valuespublic final double getBytes()
SegmentDataset
getBytes
in interface SegmentDataset
protected abstract Object getObject(int i)
protected final int getOffset(int[] keys)
protected final int getOffset(Object[] keys)
public Object getObject(CellKey pos)
SegmentDataset
Object
.getObject
in interface SegmentDataset
pos
- Coordinate positionpublic int getInt(CellKey pos)
SegmentDataset
int
.getInt
in interface SegmentDataset
pos
- Coordinate positionpublic double getDouble(CellKey pos)
SegmentDataset
double
.getDouble
in interface SegmentDataset
pos
- Coordinate positionprotected abstract int getSize()