Class ESLZ4Decompressor

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
    Modifier and Type
    Field
    Description
    static final net.jpountz.lz4.LZ4FastDecompressor
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    decompress(byte[] src, int srcOff, byte[] dest, int destOff, int destLen)
     
    int
    decompress(ByteBuffer src, int srcOff, ByteBuffer dest, int destOff, int destLen)
     

    Methods inherited from class net.jpountz.lz4.LZ4FastDecompressor

    decompress, decompress, decompress, decompress, decompress, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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:
      decompress in interface net.jpountz.lz4.LZ4Decompressor
      Specified by:
      decompress in class net.jpountz.lz4.LZ4FastDecompressor
    • decompress

      public int decompress(ByteBuffer src, int srcOff, ByteBuffer dest, int destOff, int destLen)
      Specified by:
      decompress in class net.jpountz.lz4.LZ4FastDecompressor