public class NoCompressionCodec extends Object implements CompressionCodec
| Modifier and Type | Field and Description |
|---|---|
static byte |
COMPRESSION_TYPE |
static ArrowBodyCompression |
DEFAULT_BODY_COMPRESSION |
static NoCompressionCodec |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
compress(BufferAllocator allocator,
ArrowBuf unCompressedBuffer)
Compress a buffer.
|
ArrowBuf |
decompress(BufferAllocator allocator,
ArrowBuf compressedBuffer)
Decompress a buffer.
|
String |
getCodecName()
Gets the name of the codec.
|
public static final NoCompressionCodec INSTANCE
public static final byte COMPRESSION_TYPE
public static final ArrowBodyCompression DEFAULT_BODY_COMPRESSION
public ArrowBuf compress(BufferAllocator allocator, ArrowBuf unCompressedBuffer)
CompressionCodeccompress in interface CompressionCodecallocator - the allocator for allocating memory for compressed buffer.unCompressedBuffer - the buffer to compress.
Implementation of this method should take care of releasing this buffer.public ArrowBuf decompress(BufferAllocator allocator, ArrowBuf compressedBuffer)
CompressionCodecdecompress in interface CompressionCodecallocator - 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.public String getCodecName()
CompressionCodecgetCodecName in interface CompressionCodecCopyright © 2020 The Apache Software Foundation. All rights reserved.