class DenseDoubleSegmentDataset extends DenseNativeSegmentDataset
DenseSegmentDataset
that stores
values of type double
.Modifier and Type | Field and Description |
---|---|
(package private) double[] |
values |
nullValues
axisMultipliers
Constructor and Description |
---|
DenseDoubleSegmentDataset(SegmentAxis[] axes,
double[] values,
BitSet nullIndicators)
Creates a populated DenseDoubleSegmentDataset.
|
DenseDoubleSegmentDataset(SegmentAxis[] axes,
int size)
Creates a DenseDoubleSegmentDataset.
|
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.
|
double |
getDouble(CellKey key)
Returns the value at a given coordinate, as a
double . |
Object |
getObject(CellKey pos)
Returns the value at a given coordinate, as an
Object . |
Double |
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.
|
(package private) void |
set(int k,
double d) |
isNull, isNull
final double[] values
DenseDoubleSegmentDataset(SegmentAxis[] axes, int size)
axes
- Segment axes, containing actual column valuessize
- Number of coordinatesDenseDoubleSegmentDataset(SegmentAxis[] axes, double[] values, BitSet nullIndicators)
axes
- Segment axes, containing actual column valuesvalues
- Cell values; not copiednullIndicators
- Null indicatorspublic double getDouble(CellKey key)
SegmentDataset
double
.getDouble
in interface SegmentDataset
getDouble
in class DenseSegmentDataset
key
- Coordinate positionpublic Object getObject(CellKey pos)
SegmentDataset
Object
.getObject
in interface SegmentDataset
getObject
in class DenseSegmentDataset
pos
- Coordinate positionpublic Double getObject(int offset)
getObject
in class DenseSegmentDataset
public 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
void set(int k, double d)
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
.