Class ZstdDecompressor
java.lang.Object
org.apache.hadoop.hbase.io.compress.zstd.ZstdDecompressor
- All Implemented Interfaces:
CanReinit,org.apache.hadoop.io.compress.Decompressor
@Private
public class ZstdDecompressor
extends Object
implements CanReinit, org.apache.hadoop.io.compress.Decompressor
Hadoop decompressor glue for zstd-java.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected com.github.luben.zstd.ZstdDecompressCtxprotected com.github.luben.zstd.ZstdDictDecompressprotected intprotected booleanprotected ByteBufferprotected intprotected ByteBuffer -
Constructor Summary
ConstructorsConstructorDescriptionZstdDecompressor(int bufferSize) ZstdDecompressor(int bufferSize, byte[] dictionary) -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] b, int off, int len) voidend()booleanfinished()intbooleanbooleanvoidreinit(org.apache.hadoop.conf.Configuration conf) voidreset()voidsetDictionary(byte[] b, int off, int len) voidsetInput(byte[] b, int off, int len)
-
Field Details
-
inBuf
-
outBuf
-
bufferSize
-
inLen
-
finished
-
dictId
-
dict
-
ctx
-
-
Constructor Details
-
ZstdDecompressor
ZstdDecompressor(int bufferSize, byte[] dictionary) -
ZstdDecompressor
ZstdDecompressor(int bufferSize)
-
-
Method Details
-
decompress
- Specified by:
decompressin interfaceorg.apache.hadoop.io.compress.Decompressor- Throws:
IOException
-
end
- Specified by:
endin interfaceorg.apache.hadoop.io.compress.Decompressor
-
finished
- Specified by:
finishedin interfaceorg.apache.hadoop.io.compress.Decompressor
-
getRemaining
- Specified by:
getRemainingin interfaceorg.apache.hadoop.io.compress.Decompressor
-
needsDictionary
- Specified by:
needsDictionaryin interfaceorg.apache.hadoop.io.compress.Decompressor
-
reset
- Specified by:
resetin interfaceorg.apache.hadoop.io.compress.Decompressor
-
needsInput
- Specified by:
needsInputin interfaceorg.apache.hadoop.io.compress.Decompressor
-
setDictionary
- Specified by:
setDictionaryin interfaceorg.apache.hadoop.io.compress.Decompressor
-
setInput
- Specified by:
setInputin interfaceorg.apache.hadoop.io.compress.Decompressor
-
reinit
-