Class SnappyDecompressor
java.lang.Object
org.apache.hadoop.hbase.io.compress.xerial.SnappyDecompressor
- All Implemented Interfaces:
org.apache.hadoop.io.compress.Decompressor
@Private
public class SnappyDecompressor
extends Object
implements org.apache.hadoop.io.compress.Decompressor
Hadoop decompressor glue for Xerial Snappy.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected ByteBuffer
protected int
protected ByteBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
decompress
(byte[] b, int off, int len) void
end()
boolean
finished()
int
boolean
boolean
void
reset()
void
setDictionary
(byte[] b, int off, int len) void
setInput
(byte[] b, int off, int len)
-
Field Details
-
inBuf
-
outBuf
-
inLen
-
finished
-
-
Constructor Details
-
SnappyDecompressor
SnappyDecompressor(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
-