Class BitPacking
- java.lang.Object
-
- org.apache.parquet.column.values.bitpacking.BitPacking
-
public class BitPacking extends Object
provides the correct implementation of a bitpacking based on the width in bits
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBitPacking.BitPackingReaderto read back what has been written with the corresponding writerstatic classBitPacking.BitPackingWriterto writes ints to a stream packed to only the needed bits.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BitPacking.BitPackingReadercreateBitPackingReader(int bitLength, InputStream in, long valueCount)static BitPacking.BitPackingWritergetBitPackingWriter(int bitLength, OutputStream out)
-
-
-
Method Detail
-
getBitPackingWriter
public static BitPacking.BitPackingWriter getBitPackingWriter(int bitLength, OutputStream out)
- Parameters:
bitLength- the width in bits of the integers to writeout- 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 readin- the stream to read the bytes fromvalueCount- not sure- Returns:
- the correct implementation for the width
-
-