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, isEmptypublic 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 ABitmappublic double getScale()
public int getNumValues()
getNumValues in class ABitmappublic IntArrayList getOffsetsList(int ix)
getOffsetsList in class ABitmappublic long getNumOffsets()
getNumOffsets in class ABitmappublic int getNumOffsets(int ix)
ABitmapgetNumOffsets in class ABitmapix - The offset index.public void sortValuesByFrequency()
sortValuesByFrequency in class ABitmappublic ABitmap.BitmapType getType()
Copyright © 2021 The Apache Software Foundation. All rights reserved.