Class BitPacking
java.lang.Object
org.apache.parquet.column.values.bitpacking.BitPacking
provides the correct implementation of a bitpacking based on the width in bits
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classto read back what has been written with the corresponding writerstatic classto writes ints to a stream packed to only the needed bits. -
Method Summary
Modifier and TypeMethodDescriptionstatic BitPacking.BitPackingReadercreateBitPackingReader(int bitLength, InputStream in, long valueCount) static BitPacking.BitPackingWritergetBitPackingWriter(int bitLength, OutputStream out)
-
Method Details
-
getBitPackingWriter
- 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
-