Class Bitmap
java.lang.Object
org.apache.sysds.runtime.compress.bitmap.ABitmap
org.apache.sysds.runtime.compress.bitmap.Bitmap
Uncompressed representation of one or more columns in bitmap format.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the number of columns encoded in this bitmapfinal intgetNumNonZerosInOffset(int idx) Get the number of non zeros in a specific offset's tuple value.final double[]Get all values without unnecessary allocations and copies.Methods inherited from class org.apache.sysds.runtime.compress.bitmap.ABitmap
containsZero, getNumOffsets, getNumOffsets, getNumValues, getNumZeros, getOffsetList, getOffsetsList, toString
-
Method Details
-
getValues
public final double[] getValues()Get all values without unnecessary allocations and copies.- Returns:
- Dictionary of distinct values
-
getNumNonZerosInOffset
public final int getNumNonZerosInOffset(int idx) Description copied from class:ABitmapGet the number of non zeros in a specific offset's tuple value.- Specified by:
getNumNonZerosInOffsetin classABitmap- Parameters:
idx- The offset index to look at.- Returns:
- The nnz in the tuple.
-
getNumColumns
public int getNumColumns()Description copied from class:ABitmapGet the number of columns encoded in this bitmap- Specified by:
getNumColumnsin classABitmap- Returns:
- The column count
-