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) |
getBytes, getDouble, getInt, getOffset, getOffset, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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)
SegmentDataset
Object
.getObject
in interface SegmentDataset
getObject
in class DenseSegmentDataset
key
- Coordinate positionpublic boolean isNull(CellKey pos)
SegmentDataset
pos
- Coordinate positionpublic boolean exists(CellKey pos)
SegmentDataset
pos
- Coordinate positionpublic void populateFrom(int[] pos, SegmentDataset data, CellKey key)
public void populateFrom(int[] pos, SegmentLoader.RowList rowList, int column)
SegmentDataset
pos
- OrdinalrowList
- Row listcolumn
- Column of row listpublic SqlStatement.Type getType()
SegmentDataset
protected Object getObject(int i)
getObject
in class DenseSegmentDataset
protected int getSize()
getSize
in class DenseSegmentDataset
public SegmentBody createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
SegmentDataset
axes
- 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
.