Package io.airlift.compress
Interface Compressor
- All Known Implementing Classes:
Lz4Compressor,LzoCompressor,SnappyCompressor,ZstdCompressor
public interface Compressor
-
Method Summary
Modifier and TypeMethodDescriptionintcompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) voidcompress(ByteBuffer input, ByteBuffer output) intmaxCompressedLength(int uncompressedSize)
-
Method Details
-
maxCompressedLength
int maxCompressedLength(int uncompressedSize) -
compress
int compress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) - Returns:
- number of bytes written to the output
-
compress
-