Class BitPacking.BitPackingWriter
java.lang.Object
org.apache.parquet.column.values.bitpacking.BitPacking.BitPackingWriter
- Enclosing class:
- BitPacking
to writes ints to a stream packed to only the needed bits.
there is no guarantee of corecteness if ints larger than the max size are written
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BitPackingWriter
public BitPackingWriter()
-
-
Method Details
-
write
will write the bits to the underlying stream aligned on the buffer size- Parameters:
val- the value to encode- Throws:
IOException- if there is an exception while writing
-
finish
will flush the buffer to the underlying stream (and pad with 0s)- Throws:
IOException- if there is an exception while finishing
-