Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor

java.lang.Object
org.apache.lucene.codecs.compressing.Decompressor
org.apache.lucene.codecs.lucene87.DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor
All Implemented Interfaces:
Cloneable
Enclosing class:
DeflateWithPresetDictCompressionMode

private static final class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor extends Decompressor
  • Field Details

    • compressed

      byte[] compressed
  • Constructor Details

    • DeflateWithPresetDictDecompressor

      DeflateWithPresetDictDecompressor()
  • Method Details

    • doDecompress

      private void doDecompress(DataInput in, Inflater decompressor, BytesRef bytes) throws IOException
      Throws:
      IOException
    • decompress

      public void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws IOException
      Description copied from class: Decompressor
      Decompress bytes that were stored between offsets offset and offset+length in the original stream from the compressed stream in to bytes. After returning, the length of bytes (bytes.length) must be equal to length. Implementations of this method are free to resize bytes depending on their needs.
      Specified by:
      decompress in class Decompressor
      Parameters:
      in - the input that stores the compressed stream
      originalLength - the length of the original data (before compression)
      offset - bytes before this offset do not need to be decompressed
      length - bytes after offset+length do not need to be decompressed
      bytes - a BytesRef where to store the decompressed data
      Throws:
      IOException
    • clone

      public Decompressor clone()
      Specified by:
      clone in class Decompressor