Class DenseNativeSegmentDataset

    • Field Detail

      • nullValues

        protected final java.util.BitSet nullValues
    • Constructor Detail

      • DenseNativeSegmentDataset

        DenseNativeSegmentDataset​(SegmentAxis[] axes,
                                  java.util.BitSet nullValues)
        Creates a DenseNativeSegmentDataset.
        Parameters:
        axes - Segment axes, containing actual column values
        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.
    • Method Detail

      • isNull

        public boolean isNull​(CellKey key)
        Description copied from interface: SegmentDataset
        Returns whether the cell at a given coordinate is null.
        Parameters:
        key - Coordinate position
        Returns:
        Whether cell value is null
      • isNull

        protected final boolean isNull​(int offset)
        Returns whether the value at the given offset is null.

        The native value at this offset will also be 0. You only need to call this method if the getXxx method has returned 0.

        Parameters:
        offset - Cell offset
        Returns:
        Whether the cell at this offset is null