@InterfaceAudience.Private public class ZstdDecompressor extends Object implements CanReinit, org.apache.hadoop.io.compress.Decompressor
| Modifier and Type | Field and Description |
|---|---|
protected int |
bufferSize |
protected com.github.luben.zstd.ZstdDictDecompress |
dict |
protected int |
dictId |
protected boolean |
finished |
protected ByteBuffer |
inBuf |
protected int |
inLen |
protected ByteBuffer |
outBuf |
| Constructor and Description |
|---|
ZstdDecompressor(int bufferSize) |
ZstdDecompressor(int bufferSize,
byte[] dictionary) |
| Modifier and Type | Method and Description |
|---|---|
int |
decompress(byte[] b,
int off,
int len) |
void |
end() |
boolean |
finished() |
int |
getRemaining() |
boolean |
needsDictionary() |
boolean |
needsInput() |
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) |
protected ByteBuffer inBuf
protected ByteBuffer outBuf
protected int bufferSize
protected int inLen
protected boolean finished
protected int dictId
protected com.github.luben.zstd.ZstdDictDecompress dict
ZstdDecompressor(int bufferSize, byte[] dictionary)
ZstdDecompressor(int bufferSize)
public int decompress(byte[] b, int off, int len) throws IOException
decompress in interface org.apache.hadoop.io.compress.DecompressorIOExceptionpublic void end()
end in interface org.apache.hadoop.io.compress.Decompressorpublic boolean finished()
finished in interface org.apache.hadoop.io.compress.Decompressorpublic int getRemaining()
getRemaining in interface org.apache.hadoop.io.compress.Decompressorpublic boolean needsDictionary()
needsDictionary in interface org.apache.hadoop.io.compress.Decompressorpublic void reset()
reset in interface org.apache.hadoop.io.compress.Decompressorpublic boolean needsInput()
needsInput in interface org.apache.hadoop.io.compress.Decompressorpublic void setDictionary(byte[] b, int off, int len)
setDictionary in interface org.apache.hadoop.io.compress.Decompressorpublic void setInput(byte[] b, int off, int len)
setInput in interface org.apache.hadoop.io.compress.DecompressorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.