Class BitPacking


  • public class BitPacking
    extends Object
    provides the correct implementation of a bitpacking based on the width in bits
    • Method Detail

      • getBitPackingWriter

        public static BitPacking.BitPackingWriter getBitPackingWriter​(int bitLength,
                                                                      OutputStream out)
        Parameters:
        bitLength - the width in bits of the integers to write
        out - the stream to write the bytes to
        Returns:
        the correct implementation for the width
      • createBitPackingReader

        public static BitPacking.BitPackingReader createBitPackingReader​(int bitLength,
                                                                         InputStream in,
                                                                         long valueCount)
        Parameters:
        bitLength - the width in bits of the integers to read
        in - the stream to read the bytes from
        valueCount - not sure
        Returns:
        the correct implementation for the width