Package io.airlift.compress.snappy
Class SnappyDecompressor
java.lang.Object
io.airlift.compress.snappy.SnappyDecompressor
- All Implemented Interfaces:
Decompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength)voiddecompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer)static intgetUncompressedLength(byte[] compressed, int compressedOffset)
-
Constructor Details
-
SnappyDecompressor
public SnappyDecompressor()
-
-
Method Details
-
getUncompressedLength
public static int getUncompressedLength(byte[] compressed, int compressedOffset) -
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
public void decompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer) throws MalformedInputException- Specified by:
decompressin interfaceDecompressor- Throws:
MalformedInputException
-