Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.Decompressor
-
- org.apache.lucene.codecs.lucene87.DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- DeflateWithPresetDictCompressionMode
private static final class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor extends Decompressor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]compressed
-
Constructor Summary
Constructors Constructor Description DeflateWithPresetDictDecompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decompressorclone()voiddecompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)Decompress bytes that were stored between offsetsoffsetandoffset+lengthin the original stream from the compressed streamintobytes.private voiddoDecompress(DataInput in, java.util.zip.Inflater decompressor, BytesRef bytes)
-
-
-
Method Detail
-
doDecompress
private void doDecompress(DataInput in, java.util.zip.Inflater decompressor, BytesRef bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
decompress
public void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws java.io.IOException
Description copied from class:DecompressorDecompress bytes that were stored between offsetsoffsetandoffset+lengthin the original stream from the compressed streamintobytes. After returning, the length ofbytes(bytes.length) must be equal tolength. Implementations of this method are free to resizebytesdepending on their needs.- Specified by:
decompressin classDecompressor- Parameters:
in- the input that stores the compressed streamoriginalLength- the length of the original data (before compression)offset- bytes before this offset do not need to be decompressedlength- bytes afteroffset+lengthdo not need to be decompressedbytes- aBytesRefwhere to store the decompressed data- Throws:
java.io.IOException
-
clone
public Decompressor clone()
- Specified by:
clonein classDecompressor
-
-