Package io.airlift.compress.v3.lzo
Class LzoCompressor
java.lang.Object
io.airlift.compress.v3.lzo.LzoCompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) intcompress(MemorySegment input, MemorySegment output) intgetRetainedSizeInBytes(int inputLength) intmaxCompressedLength(int uncompressedSize)
-
Constructor Details
-
LzoCompressor
public LzoCompressor()
-
-
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- Returns:
- number of bytes written to the output
-
getRetainedSizeInBytes
public int getRetainedSizeInBytes(int inputLength) - Specified by:
getRetainedSizeInBytesin interfaceCompressor
-