Class SnappyCompressor
java.lang.Object
org.apache.hadoop.hbase.io.compress.xerial.SnappyCompressor
- All Implemented Interfaces:
CanReinit
,org.apache.hadoop.io.compress.Compressor
@Private
public class SnappyCompressor
extends Object
implements CanReinit, org.apache.hadoop.io.compress.Compressor
Hadoop compressor glue for Xerial Snappy.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected long
protected long
protected boolean
protected boolean
protected ByteBuffer
protected ByteBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compress
(byte[] b, int off, int len) void
end()
void
finish()
boolean
finished()
long
long
(package private) int
maxCompressedLength
(int len) 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
-
finish
-
finished
-
bytesRead
-
bytesWritten
-
-
Constructor Details
-
SnappyCompressor
SnappyCompressor(int bufferSize)
-
-
Method Details
-
compress
- Specified by:
compress
in interfaceorg.apache.hadoop.io.compress.Compressor
- Throws:
IOException
-
end
- Specified by:
end
in interfaceorg.apache.hadoop.io.compress.Compressor
-
finish
- Specified by:
finish
in interfaceorg.apache.hadoop.io.compress.Compressor
-
finished
- Specified by:
finished
in interfaceorg.apache.hadoop.io.compress.Compressor
-
getBytesRead
- Specified by:
getBytesRead
in interfaceorg.apache.hadoop.io.compress.Compressor
-
getBytesWritten
- Specified by:
getBytesWritten
in interfaceorg.apache.hadoop.io.compress.Compressor
-
needsInput
- Specified by:
needsInput
in interfaceorg.apache.hadoop.io.compress.Compressor
-
reinit
-
reset
- Specified by:
reset
in interfaceorg.apache.hadoop.io.compress.Compressor
-
setDictionary
- Specified by:
setDictionary
in interfaceorg.apache.hadoop.io.compress.Compressor
-
setInput
- Specified by:
setInput
in interfaceorg.apache.hadoop.io.compress.Compressor
-
maxCompressedLength
-