Module org.apache.lucene.core
Class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor
java.lang.Object
org.apache.lucene.codecs.compressing.Decompressor
org.apache.lucene.codecs.lucene90.LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor
- All Implemented Interfaces:
Cloneable
- Enclosing class:
LZ4WithPresetDictCompressionMode
private static final class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor
extends Decompressor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()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 intreadCompressedLengths(DataInput in, int originalLength, int dictLength, int blockLength)
-
Field Details
-
compressedLengths
private int[] compressedLengths -
buffer
private byte[] buffer
-
-
Constructor Details
-
LZ4WithPresetDictDecompressor
LZ4WithPresetDictDecompressor()
-
-
Method Details
-
readCompressedLengths
private int readCompressedLengths(DataInput in, int originalLength, int dictLength, int blockLength) throws IOException - Throws:
IOException
-
decompress
public void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws 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:
IOException
-
clone
- Specified by:
clonein classDecompressor
-