public class NoCompressionCodec extends Object implements CompressionCodec
| Modifier and Type | Class and Description |
|---|---|
static class |
NoCompressionCodec.Factory
The default factory that creates a
NoCompressionCodec. |
| 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.
|
CompressionUtil.CodecType |
getCodecType()
Gets the type 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 CompressionUtil.CodecType getCodecType()
CompressionCodecgetCodecType in interface CompressionCodecCopyright © 2024 The Apache Software Foundation. All rights reserved.