abstract class AbstractSegmentBody extends Object implements SegmentBody
Modifier and Type | Field and Description |
---|---|
protected SortedSet<Comparable>[] |
axisValueSets |
Constructor and Description |
---|
AbstractSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes) |
Modifier and Type | Method and Description |
---|---|
SortedSet<Comparable>[] |
getAxisValueSets()
Returns the cached axis value sets to be used as an
initializer for the segment's axis.
|
protected int |
getEffectiveSize()
Returns the amount of non-null elements.
|
boolean[] |
getNullAxisFlags()
Returns an array of boolean values which identify which
axis of the cached segment contained null values.
|
BitSet |
getNullValueIndicators()
Returns a bit-set indicating whether values are null.
|
protected abstract Object |
getObject(int i) |
protected abstract int |
getSize()
Returns the overall amount of stored elements, including those,
that are considered to be null.
|
Object |
getValueArray()
Returns an array of values.
|
Map<CellKey,Object> |
getValueMap()
Converts contents of this segment into a cellkey/value map.
|
protected final SortedSet<Comparable>[] axisValueSets
public AbstractSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
public SortedSet<Comparable>[] getAxisValueSets()
SegmentBody
getAxisValueSets
in interface SegmentBody
public boolean[] getNullAxisFlags()
SegmentBody
getNullAxisFlags
in interface SegmentBody
public Map<CellKey,Object> getValueMap()
SegmentBody
getValueMap
in interface SegmentBody
public Object getValueArray()
SegmentBody
Use only for dense segments.
getValueArray
in interface SegmentBody
public BitSet getNullValueIndicators()
SegmentBody
SegmentBody.getValueArray()
.
Use only for dense segments of native values.
getNullValueIndicators
in interface SegmentBody
protected abstract int getSize()
protected int getEffectiveSize()
getValueMap().entrySet().iterator()
is returned.
By default the method executes getSize()
.protected abstract Object getObject(int i)