Class ByteBitPackingValuesWriter


  • public class ByteBitPackingValuesWriter
    extends ValuesWriter
    • Constructor Detail

      • ByteBitPackingValuesWriter

        public ByteBitPackingValuesWriter​(int bound,
                                          org.apache.parquet.column.values.bitpacking.Packer packer)
    • Method Detail

      • writeInteger

        public void writeInteger​(int v)
        Overrides:
        writeInteger in class ValuesWriter
        Parameters:
        v - the value to encode
      • getEncoding

        public Encoding getEncoding()
        Description copied from class: ValuesWriter
        called after getBytes() and before reset()
        Specified by:
        getEncoding in class ValuesWriter
        Returns:
        the encoding that was used to encode the bytes
      • getBytes

        public org.apache.parquet.bytes.BytesInput getBytes()
        Specified by:
        getBytes in class ValuesWriter
        Returns:
        the bytes buffered so far to write to the current page
      • reset

        public void reset()
        Description copied from class: ValuesWriter
        called after getBytes() to reset the current buffer and start writing the next page
        Specified by:
        reset in class ValuesWriter
      • getBufferedSize

        public long getBufferedSize()
        Description copied from class: ValuesWriter
        used to decide if we want to work to the next page
        Specified by:
        getBufferedSize in class ValuesWriter
        Returns:
        the size of the currently buffered data (in bytes)