Class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.Decompressor
-
- org.apache.lucene.codecs.lucene87.LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- LZ4WithPresetDictCompressionMode
private static final class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor extends Decompressor
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
buffer
private int[]
compressedLengths
-
Constructor Summary
Constructors Constructor Description LZ4WithPresetDictDecompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decompressor
clone()
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 int
readCompressedLengths(DataInput in, int originalLength, int dictLength, int blockLength)
-
-
-
Method Detail
-
readCompressedLengths
private int readCompressedLengths(DataInput in, int originalLength, int dictLength, int blockLength) 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: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:
java.io.IOException
-
clone
public Decompressor clone()
- Specified by:
clone
in classDecompressor
-
-