class DenseIntSegmentDataset extends DenseNativeSegmentDataset
DenseSegmentDataset that stores
values of type Object.
The storage requirements are as follows. Table requires 1 word per cell.
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
values |
nullValuesaxisMultipliers| Constructor and Description |
|---|
DenseIntSegmentDataset(SegmentAxis[] axes,
int size)
Creates a DenseIntSegmentDataset.
|
DenseIntSegmentDataset(SegmentAxis[] axes,
int[] values,
BitSet nullIndicators)
Creates a populated DenseIntSegmentDataset.
|
| Modifier and Type | Method and Description |
|---|---|
SegmentBody |
createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
Return an immutable, final and serializable implementation
of a SegmentBody in order to cache this dataset.
|
boolean |
exists(CellKey pos)
Returns whether there is a value at a given coordinate.
|
int |
getInt(CellKey key)
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 Integer |
getObject(int offset) |
protected int |
getSize() |
SqlStatement.Type |
getType()
Returns the SQL type of the data contained in this dataset.
|
void |
populateFrom(int[] pos,
SegmentDataset data,
CellKey key) |
void |
populateFrom(int[] pos,
SegmentLoader.RowList rowList,
int column)
Sets the value a given ordinal.
|
void |
put(CellKey key,
int value) |
void |
put(int[] ordinals,
int value) |
(package private) void |
set(int k,
int o) |
isNull, isNullDenseIntSegmentDataset(SegmentAxis[] axes, int size)
axes - Segment axes, containing actual column valuessize - Number of coordinatesDenseIntSegmentDataset(SegmentAxis[] axes, int[] values, BitSet nullIndicators)
axes - Segment axes, containing actual column valuesvalues - Cell values; not copiednullIndicators - Null indicatorspublic int getInt(CellKey key)
SegmentDatasetint.getInt in interface SegmentDatasetgetInt in class DenseSegmentDatasetkey - Coordinate positionpublic Object getObject(CellKey pos)
SegmentDatasetObject.getObject in interface SegmentDatasetgetObject in class DenseSegmentDatasetpos - Coordinate positionprotected Integer getObject(int offset)
getObject in class DenseSegmentDatasetpublic boolean exists(CellKey pos)
SegmentDatasetpos - Coordinate positionpublic void populateFrom(int[] pos,
SegmentDataset data,
CellKey key)
public void populateFrom(int[] pos,
SegmentLoader.RowList rowList,
int column)
SegmentDatasetpos - OrdinalrowList - Row listcolumn - Column of row listpublic SqlStatement.Type getType()
SegmentDatasetpublic void put(CellKey key, int value)
public void put(int[] ordinals,
int value)
void set(int k,
int o)
protected int getSize()
getSize in class DenseSegmentDatasetpublic SegmentBody createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
SegmentDatasetaxes - An array with, for each axis, the set of axis values, sorted
in natural order, and a flag saying whether the null value is also
present.
This is supplied by the SegmentLoader.SegmentBody.