Package io.airlift.compress.zstd
Class ZstdCompressor
java.lang.Object
io.airlift.compress.zstd.ZstdCompressor
- All Implemented Interfaces:
Compressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) voidcompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer) intmaxCompressedLength(int uncompressedSize)
-
Constructor Details
-
ZstdCompressor
public ZstdCompressor()
-
-
Method Details
-
maxCompressedLength
public int maxCompressedLength(int uncompressedSize) - Specified by:
maxCompressedLengthin interfaceCompressor
-
compress
public int compress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) - Specified by:
compressin interfaceCompressor- Returns:
- number of bytes written to the output
-
compress
- Specified by:
compressin interfaceCompressor
-