public final class BitmapLossy extends ABitmap
ABitmap.BitmapType
Constructor and Description |
---|
BitmapLossy(int numCols,
IntArrayList[] offsetsLists,
byte[] values,
double scale,
int rows) |
Modifier and Type | Method and Description |
---|---|
int |
getNumNonZerosInOffset(int idx) |
long |
getNumOffsets() |
int |
getNumOffsets(int ix)
Get the number of offsets for a specific unique offset.
|
int |
getNumValues()
Obtain number of distinct values in the column.
|
IntArrayList |
getOffsetsList(int ix) |
double |
getScale() |
ABitmap.BitmapType |
getType() |
byte[] |
getValues()
Get all values without unnecessary allocations and copies.
|
byte[] |
getValues(int ix)
Obtain tuple of column values associated with index.
|
boolean |
lossy() |
void |
sortValuesByFrequency() |
String |
toString() |
containsZero, getNumColumns, getNumRows, getOffsetList, getZeroCounts, isEmpty
public BitmapLossy(int numCols, IntArrayList[] offsetsLists, byte[] values, double scale, int rows)
public byte[] getValues()
public byte[] getValues(int ix)
ix
- index of a particular distinct valuepublic int getNumNonZerosInOffset(int idx)
getNumNonZerosInOffset
in class ABitmap
public double getScale()
public int getNumValues()
getNumValues
in class ABitmap
public IntArrayList getOffsetsList(int ix)
getOffsetsList
in class ABitmap
public long getNumOffsets()
getNumOffsets
in class ABitmap
public int getNumOffsets(int ix)
ABitmap
getNumOffsets
in class ABitmap
ix
- The offset index.public void sortValuesByFrequency()
sortValuesByFrequency
in class ABitmap
public ABitmap.BitmapType getType()
Copyright © 2021 The Apache Software Foundation. All rights reserved.