Class Decompressor
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.Decompressor
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
CompressionMode.DeflateDecompressor,DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor,LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor
public abstract class Decompressor extends java.lang.Object implements java.lang.CloneableA decompressor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDecompressor()Sole constructor, typically called from sub-classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Decompressorclone()abstract 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.
-
-
-
Method Detail
-
decompress
public abstract void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws java.io.IOException
Decompress 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.- 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 abstract Decompressor clone()
- Overrides:
clonein classjava.lang.Object
-
-