Package io.airlift.compress.v3.snappy
Class SnappyJavaDecompressor
java.lang.Object
io.airlift.compress.v3.snappy.SnappyJavaDecompressor
- All Implemented Interfaces:
Decompressor,SnappyDecompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) intdecompress(MemorySegment input, MemorySegment output) intgetUncompressedLength(byte[] compressed, int compressedOffset)
-
Constructor Details
-
SnappyJavaDecompressor
public SnappyJavaDecompressor()
-
-
Method Details
-
getUncompressedLength
public int getUncompressedLength(byte[] compressed, int compressedOffset) - Specified by:
getUncompressedLengthin interfaceSnappyDecompressor
-
decompress
public int decompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) throws MalformedInputException - Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
- Throws:
MalformedInputException
-
decompress
- Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
- Throws:
MalformedInputException
-