class DenseObjectSegmentDataset extends DenseSegmentDataset
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) Object[] |
values |
axisMultipliers| Constructor and Description |
|---|
DenseObjectSegmentDataset(SegmentAxis[] axes,
int size)
Creates a DenseSegmentDataset.
|
DenseObjectSegmentDataset(SegmentAxis[] axes,
Object[] values)
Creates and populates a DenseSegmentDataset.
|
| 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.
|
Object |
getObject(CellKey key)
Returns the value at a given coordinate, as an
Object. |
protected Object |
getObject(int i) |
protected int |
getSize() |
SqlStatement.Type |
getType()
Returns the SQL type of the data contained in this dataset.
|
boolean |
isNull(CellKey pos)
Returns whether the cell at a given coordinate is null.
|
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,
Object value) |
final Object[] values
DenseObjectSegmentDataset(SegmentAxis[] axes, int size)
axes - Segment axes, containing actual column valuessize - Number of coordinatesDenseObjectSegmentDataset(SegmentAxis[] axes, Object[] values)
axes - Axesvalues - Data setpublic Object getObject(CellKey key)
SegmentDatasetObject.getObject in interface SegmentDatasetgetObject in class DenseSegmentDatasetkey - Coordinate positionpublic boolean isNull(CellKey pos)
SegmentDatasetpos - Coordinate positionpublic 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()
SegmentDatasetprotected Object getObject(int i)
getObject in class DenseSegmentDatasetprotected 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.