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 |
---|---|
protected int |
getEffectiveSize()
Returns the amount of non-null elements.
|
BitSet |
getNullValueIndicators()
Returns a bit-set indicating whether values are null.
|
protected Object |
getObject(int i) |
protected int |
getSize()
Returns the overall amount of stored elements, including those,
that are considered to be null.
|
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()
AbstractSegmentBody
getSize
in class AbstractSegmentBody
protected int getEffectiveSize()
AbstractSegmentBody
getValueMap().entrySet().iterator()
is returned.
By default the method executes getSize()
.getEffectiveSize
in class AbstractSegmentBody
protected Object getObject(int i)
getObject
in class AbstractSegmentBody