java.lang.Object
org.apache.arrow.vector.compression.AbstractCompressionCodec
org.apache.arrow.compression.ZstdCompressionCodec
- All Implemented Interfaces:
CompressionCodec
Compression codec for the ZSTD algorithm.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.arrow.vector.compression.CompressionCodec
CompressionCodec.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ArrowBufdoCompress(BufferAllocator allocator, ArrowBuf uncompressedBuffer) The method that actually performs the data compression.protected ArrowBufdoDecompress(BufferAllocator allocator, ArrowBuf compressedBuffer) The method that actually performs the data decompression.Gets the type of the codec.Methods inherited from class org.apache.arrow.vector.compression.AbstractCompressionCodec
compress, decompress, readUncompressedLength, writeUncompressedLength
-
Constructor Details
-
ZstdCompressionCodec
public ZstdCompressionCodec() -
ZstdCompressionCodec
public ZstdCompressionCodec(int compressionLevel)
-
-
Method Details
-
doCompress
Description copied from class:AbstractCompressionCodecThe method that actually performs the data compression. The layout of the returned compressed buffer is the compressed data, plus 8 bytes reserved at the beginning of the buffer for the uncompressed data size.Please note that this method is not responsible for releasing the uncompressed buffer.
- Specified by:
doCompressin classAbstractCompressionCodec
-
doDecompress
Description copied from class:AbstractCompressionCodecThe method that actually performs the data decompression. The layout of the compressed buffer is the compressed data, plus 8 bytes at the beginning of the buffer storing the uncompressed data size.Please note that this method is not responsible for releasing the compressed buffer.
- Specified by:
doDecompressin classAbstractCompressionCodec
-
getCodecType
Description copied from interface:CompressionCodecGets the type of the codec.- Returns:
- the type of the codec.
-