Class BitPackingUtils

java.lang.Object
io.trino.parquet.reader.flat.BitPackingUtils

public class BitPackingUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    bitCount(byte value)
     
    static int
    unpack(boolean[] values, int offset, byte packedByte)
     
    static int
    unpack(boolean[] values, int offset, byte packedByte, int startBit, int endBit)
     
    static int
    unpack(boolean[] values, int offset, long packedValue)
     
    static void
    unpack(byte[] values, int offset, byte packedByte, int startBit, int endBit)
     
    static void
    unpack64FromLong(byte[] values, int offset, long packedValue)
     
    static void
    unpack8FromByte(byte[] values, int offset, byte packedByte)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)