Class DeltaBinaryPackingValuesWriterForInteger

All Implemented Interfaces:
AutoCloseable

public class DeltaBinaryPackingValuesWriterForInteger extends DeltaBinaryPackingValuesWriter
Write integers (INT32) with delta encoding and binary packing.
  • Constructor Details

    • DeltaBinaryPackingValuesWriterForInteger

      public DeltaBinaryPackingValuesWriterForInteger(int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator)
    • DeltaBinaryPackingValuesWriterForInteger

      public DeltaBinaryPackingValuesWriterForInteger(int blockSizeInValues, int miniBlockNum, int slabSize, int pageSize, org.apache.parquet.bytes.ByteBufferAllocator allocator)
  • Method Details

    • writeInteger

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

      public org.apache.parquet.bytes.BytesInput getBytes()
      getBytes will trigger flushing block buffer, DO NOT write after getBytes() is called without calling reset()
      Specified by:
      getBytes in class ValuesWriter
      Returns:
      a BytesInput that contains the encoded page data
    • reset

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

      public void close()
      Description copied from class: ValuesWriter
      Called to close the values writer. Any output stream is closed and can no longer be used. All resources are released.
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class DeltaBinaryPackingValuesWriter