org.apache.sysds.runtime.compress.utils

## Class ABitmap

- java.lang.Object
- - org.apache.sysds.runtime.compress.utils.ABitmap

- Direct Known Subclasses:
    Bitmap, BitmapLossy

      public abstract class ABitmap
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `ABitmap.BitmapType`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ABitmap(int numCols, IntArrayList[] offsetsLists, int numZeroGroups)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `containsZero()`
    `int` | `getNumColumns()`
    `long` | `getNumOffsets()`
    `int` | `getNumOffsets(int ix)`
    `abstract int` | `getNumValues()` Obtain number of distinct value groups in the column.
    `IntArrayList[]` | `getOffsetList()`
    `IntArrayList` | `getOffsetsList(int idx)`
    `abstract ABitmap.BitmapType` | `getType()`
    `int` | `getZeroCounts()`
    `abstract void` | `sortValuesByFrequency()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ABitmap

          public ABitmap(int numCols,
                         IntArrayList[] offsetsLists,
                         int numZeroGroups)

  - ### Method Detail

    - #### getNumColumns

          public int getNumColumns()

    - #### getNumValues

          public abstract int getNumValues()

      Obtain number of distinct value groups in the column. this number is also the number of bitmaps, since there is one bitmap per value
      Returns:
        number of distinct value groups in the column;

    - #### getOffsetList

          public IntArrayList[] getOffsetList()

    - #### getOffsetsList

          public IntArrayList getOffsetsList(int idx)

    - #### getNumOffsets

          public long getNumOffsets()

    - #### getNumOffsets

          public int getNumOffsets(int ix)

    - #### sortValuesByFrequency

          public abstract void sortValuesByFrequency()

    - #### containsZero

          public boolean containsZero()

    - #### getZeroCounts

          public int getZeroCounts()

    - #### getType

          public abstract ABitmap.BitmapType getType()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2020 The Apache Software Foundation. All rights reserved.