Package io.airlift.compress.v3.snappy
Class SnappyNativeDecompressor
java.lang.Object
io.airlift.compress.v3.snappy.SnappyNativeDecompressor
- 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) static boolean
-
Constructor Details
-
SnappyNativeDecompressor
public SnappyNativeDecompressor()
-
-
Method Details
-
isEnabled
public static boolean isEnabled() -
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) - Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
-
decompress
- Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
-