java.lang.Object
net.jpountz.lz4.LZ4FastDecompressor
org.elasticsearch.lz4.ESLZ4Decompressor
- All Implemented Interfaces:
net.jpountz.lz4.LZ4Decompressor
public class ESLZ4Decompressor
extends net.jpountz.lz4.LZ4FastDecompressor
This file is a vendored version of
net.jpountz.lz4.LZ4JavaSafeFastDecompressor from
yawkat/lz4-java. To obtain the original file, check out the lz4-java repository
and run mvn clean install which will generate the original source of this class at
target/generated-sources/mvel/net/jpountz/lz4/LZ4JavaSafeFastDecompressor.java.
It modifies the original implementation to use local LZ4SafeUtils and SafeUtils implementations which include some
performance optimisations, and it also drops support for decompressing data from a direct (non-heap) ByteBuffer.
Differences from the original are annotated with [ES change from upstream]
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] src, int srcOff, byte[] dest, int destOff, int destLen) intdecompress(ByteBuffer src, int srcOff, ByteBuffer dest, int destOff, int destLen) Methods inherited from class net.jpountz.lz4.LZ4FastDecompressor
decompress, decompress, decompress, decompress, decompress, toString
-
Field Details
-
INSTANCE
public static final net.jpountz.lz4.LZ4FastDecompressor INSTANCE
-
-
Method Details
-
decompress
public int decompress(byte[] src, int srcOff, byte[] dest, int destOff, int destLen) - Specified by:
decompressin interfacenet.jpountz.lz4.LZ4Decompressor- Specified by:
decompressin classnet.jpountz.lz4.LZ4FastDecompressor
-
decompress
- Specified by:
decompressin classnet.jpountz.lz4.LZ4FastDecompressor
-