Class Decompressor
java.lang.Object
org.apache.lucene.codecs.compressing.Decompressor
- All Implemented Interfaces:
Cloneable
A decompressor.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Sole constructor, typically called from sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionabstract Decompressor
clone()
abstract 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
.
-
Constructor Details
-
Decompressor
protected Decompressor()Sole constructor, typically called from sub-classes.
-
-
Method Details
-
decompress
public abstract void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws IOException 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.- 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
-