class DenseDoubleSegmentBody extends AbstractSegmentBody
axisValueSets
Constructor and Description |
---|
DenseDoubleSegmentBody(BitSet nullValues,
double[] values,
List<Pair<SortedSet<Comparable>,Boolean>> axes)
Creates a DenseDoubleSegmentBody.
|
Modifier and Type | Method and Description |
---|---|
BitSet |
getNullValueIndicators()
Returns a bit-set indicating whether values are null.
|
protected Object |
getObject(int i) |
protected int |
getSize() |
Object |
getValueArray()
Returns an array of values.
|
String |
toString() |
getAxisValueSets, getNullAxisFlags, getValueMap
DenseDoubleSegmentBody(BitSet nullValues, double[] values, List<Pair<SortedSet<Comparable>,Boolean>> axes)
Stores the given array of cell values and null indicators; caller must not modify them afterwards.
nullValues
- A bit-set indicating whether values are null. Each
position in the bit-set corresponds to an offset in the
value array. If position is null, the corresponding
entry in the value array will also be 0.values
- Cell valuesaxes
- Axespublic Object getValueArray()
SegmentBody
Use only for dense segments.
getValueArray
in interface SegmentBody
getValueArray
in class AbstractSegmentBody
public BitSet getNullValueIndicators()
SegmentBody
SegmentBody.getValueArray()
.
Use only for dense segments of native values.
getNullValueIndicators
in interface SegmentBody
getNullValueIndicators
in class AbstractSegmentBody
protected int getSize()
getSize
in class AbstractSegmentBody
protected Object getObject(int i)
getObject
in class AbstractSegmentBody