Class BitPacking.BitPackingWriter
- java.lang.Object
-
- org.apache.parquet.column.values.bitpacking.BitPacking.BitPackingWriter
-
- Enclosing class:
- BitPacking
public abstract static class BitPacking.BitPackingWriter extends Object
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 Constructor Description BitPackingWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidfinish()will flush the buffer to the underlying stream (and pad with 0s)abstract voidwrite(int val)will write the bits to the underlying stream aligned on the buffer size
-
-
-
Method Detail
-
write
public abstract void write(int val) throws IOExceptionwill 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
public abstract void finish() throws IOExceptionwill flush the buffer to the underlying stream (and pad with 0s)- Throws:
IOException- if there is an exception while finishing
-
-