Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor
java.lang.Object
org.apache.lucene.codecs.compressing.Decompressor
org.apache.lucene.backward_codecs.lucene87.DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- DeflateWithPresetDictCompressionMode
private static final class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor
extends Decompressor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) Decompress bytes that were stored between offsetsoffset
andoffset+length
in the original stream from the compressed streamin
tobytes
.private void
doDecompress
(DataInput in, Inflater decompressor, BytesRef bytes)
-
Field Details
-
compressed
byte[] compressed
-
-
Constructor Details
-
DeflateWithPresetDictDecompressor
DeflateWithPresetDictDecompressor()
-
-
Method Details
-
doDecompress
- 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 offsetsoffset
andoffset+length
in the original stream from the compressed streamin
tobytes
. After returning, the length ofbytes
(bytes.length
) must be equal tolength
. Implementations of this method are free to resizebytes
depending on their needs.- Specified by:
decompress
in 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+length
do not need to be decompressedbytes
- aBytesRef
where to store the decompressed data- Throws:
IOException
-
clone
- Specified by:
clone
in classDecompressor
-