public class ZstdCompressionCodec extends AbstractCompressionCodec
CompressionCodec.Factory
Constructor and Description |
---|
ZstdCompressionCodec() |
ZstdCompressionCodec(int compressionLevel) |
Modifier and Type | Method and Description |
---|---|
protected ArrowBuf |
doCompress(BufferAllocator allocator,
ArrowBuf uncompressedBuffer)
The method that actually performs the data compression.
|
protected ArrowBuf |
doDecompress(BufferAllocator allocator,
ArrowBuf compressedBuffer)
The method that actually performs the data decompression.
|
CompressionUtil.CodecType |
getCodecType()
Gets the type of the codec.
|
compress, decompress, readUncompressedLength, writeUncompressedLength
public ZstdCompressionCodec()
public ZstdCompressionCodec(int compressionLevel)
protected ArrowBuf doCompress(BufferAllocator allocator, ArrowBuf uncompressedBuffer)
AbstractCompressionCodec
Please note that this method is not responsible for releasing the uncompressed buffer.
doCompress
in class AbstractCompressionCodec
protected ArrowBuf doDecompress(BufferAllocator allocator, ArrowBuf compressedBuffer)
AbstractCompressionCodec
Please note that this method is not responsible for releasing the compressed buffer.
doDecompress
in class AbstractCompressionCodec
public CompressionUtil.CodecType getCodecType()
CompressionCodec
Copyright © 2023 The Apache Software Foundation. All rights reserved.