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
Modifier and TypeFieldDescriptionprotected int
protected com.github.luben.zstd.ZstdDecompressCtx
protected com.github.luben.zstd.ZstdDictDecompress
protected int
protected boolean
protected ByteBuffer
protected int
protected ByteBuffer
-
Constructor Summary
ConstructorDescriptionZstdDecompressor
(int bufferSize) ZstdDecompressor
(int bufferSize, byte[] dictionary) -
Method Summary
Modifier and TypeMethodDescriptionint
decompress
(byte[] b, int off, int len) void
end()
boolean
finished()
int
boolean
boolean
void
reinit
(org.apache.hadoop.conf.Configuration conf) void
reset()
void
setDictionary
(byte[] b, int off, int len) void
setInput
(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:
decompress
in interfaceorg.apache.hadoop.io.compress.Decompressor
- Throws:
IOException
-
end
- Specified by:
end
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
finished
- Specified by:
finished
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
getRemaining
- Specified by:
getRemaining
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
needsDictionary
- Specified by:
needsDictionary
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
reset
- Specified by:
reset
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
needsInput
- Specified by:
needsInput
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
setDictionary
- Specified by:
setDictionary
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
setInput
- Specified by:
setInput
in interfaceorg.apache.hadoop.io.compress.Decompressor
-
reinit
-