Class DeltaBinaryPackingValuesWriterForLong


  • public class DeltaBinaryPackingValuesWriterForLong
    extends DeltaBinaryPackingValuesWriter
    Write longs (INT64) with delta encoding and binary packing.
    • Constructor Detail

      • DeltaBinaryPackingValuesWriterForLong

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

        public DeltaBinaryPackingValuesWriterForLong​(int blockSizeInValues,
                                                     int miniBlockNum,
                                                     int slabSize,
                                                     int pageSize,
                                                     org.apache.parquet.bytes.ByteBufferAllocator allocator)
    • Method Detail

      • writeLong

        public void writeLong​(long v)
        Overrides:
        writeLong 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
      • 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.
        Overrides:
        close in class DeltaBinaryPackingValuesWriter