Class NoCompressionCodec

java.lang.Object
org.apache.arrow.vector.compression.NoCompressionCodec
All Implemented Interfaces:
CompressionCodec

public class NoCompressionCodec extends Object implements CompressionCodec
The default compression codec that does no compression.
  • Field Details

  • Method Details

    • compress

      public ArrowBuf compress(BufferAllocator allocator, ArrowBuf uncompressedBuffer)
      Description copied from interface: CompressionCodec
      Compress a buffer.
      Specified by:
      compress in interface CompressionCodec
      Parameters:
      allocator - the allocator for allocating memory for compressed buffer.
      uncompressedBuffer - the buffer to compress. Implementation of this method should take care of releasing this buffer.
      Returns:
      the compressed buffer
    • decompress

      public ArrowBuf decompress(BufferAllocator allocator, ArrowBuf compressedBuffer)
      Description copied from interface: CompressionCodec
      Decompress a buffer.
      Specified by:
      decompress in interface CompressionCodec
      Parameters:
      allocator - the allocator for allocating memory for decompressed buffer.
      compressedBuffer - the buffer to be decompressed. Implementation of this method should take care of releasing this buffer.
      Returns:
      the decompressed buffer.
    • getCodecType

      public CompressionUtil.CodecType getCodecType()
      Description copied from interface: CompressionCodec
      Gets the type of the codec.
      Specified by:
      getCodecType in interface CompressionCodec
      Returns:
      the type of the codec.