Package io.trino.parquet.reader.flat
Class BitPackingUtils
java.lang.Object
io.trino.parquet.reader.flat.BitPackingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic intbitCount(byte value) static intunpack(boolean[] values, int offset, byte packedByte) static intunpack(boolean[] values, int offset, byte packedByte, int startBit, int endBit) static intunpack(boolean[] values, int offset, long packedValue) static voidunpack(byte[] values, int offset, byte packedByte, int startBit, int endBit) static voidunpack64FromLong(byte[] values, int offset, long packedValue) static voidunpack8FromByte(byte[] values, int offset, byte packedByte)
-
Method Details
-
unpack
public static int unpack(boolean[] values, int offset, byte packedByte, int startBit, int endBit) - Returns:
- number of bits equal to 0 (non-nulls)
-
unpack
public static int unpack(boolean[] values, int offset, byte packedByte) - Returns:
- number of bits equal to 0 (non-nulls)
-
unpack
public static int unpack(boolean[] values, int offset, long packedValue) - Returns:
- number of bits equal to 0 (non-nulls)
-
unpack
public static void unpack(byte[] values, int offset, byte packedByte, int startBit, int endBit) -
unpack8FromByte
public static void unpack8FromByte(byte[] values, int offset, byte packedByte) -
unpack64FromLong
public static void unpack64FromLong(byte[] values, int offset, long packedValue) -
bitCount
public static int bitCount(byte value)
-