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 forked from https://github.com/lz4/lz4-java. In particular, it forks the following file net.jpountz.lz4.LZ4JavaSafeFastDecompressor. It modifies the original implementation to use custom LZ4SafeUtils and SafeUtils implementations which include performance improvements.
  • 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