Class AbstractSegmentBody

    • Method Detail

      • getAxisValueSets

        public SortedSet<Comparable>[] getAxisValueSets()
        Description copied from interface: SegmentBody
        Returns the cached axis value sets to be used as an initializer for the segment's axis.
        Specified by:
        getAxisValueSets in interface SegmentBody
        Returns:
        An array of SortedSets which was cached previously.
      • getNullAxisFlags

        public boolean[] getNullAxisFlags()
        Description copied from interface: SegmentBody
        Returns an array of boolean values which identify which axis of the cached segment contained null values.
        Specified by:
        getNullAxisFlags in interface SegmentBody
        Returns:
        An array of boolean values.
      • getValueMap

        public Map<CellKey,​Object> getValueMap()
        Description copied from interface: SegmentBody
        Converts contents of this segment into a cellkey/value map. Use only for sparse segments.
        Specified by:
        getValueMap in interface SegmentBody
        Returns:
        Map containing cell values keyed by their coordinates
      • getValueArray

        public Object getValueArray()
        Description copied from interface: SegmentBody
        Returns an array of values.

        Use only for dense segments.

        Specified by:
        getValueArray in interface SegmentBody
        Returns:
        An array of values
      • getNullValueIndicators

        public BitSet getNullValueIndicators()
        Description copied from interface: SegmentBody
        Returns a bit-set indicating whether values are null. The ordinals in the bit-set correspond to the indexes in the array returned from SegmentBody.getValueArray().

        Use only for dense segments of native values.

        Specified by:
        getNullValueIndicators in interface SegmentBody
        Returns:
        Indicators
      • getSize

        protected abstract int getSize()
        Returns the overall amount of stored elements, including those, that are considered to be null.
        Returns:
        the size of stored data
      • getEffectiveSize

        protected int getEffectiveSize()
        Returns the amount of non-null elements. This amount is equal to number of elements that getValueMap().entrySet().iterator() is returned. By default the method executes getSize().
        Returns:
        the effective size of stored data
      • getObject

        protected abstract Object getObject​(int i)