Class Lz4Compressor
java.lang.Object
org.apache.hadoop.hbase.io.compress.lz4.Lz4Compressor
- All Implemented Interfaces:
CanReinit
,org.apache.hadoop.io.compress.Compressor
@Private
public class Lz4Compressor
extends Object
implements CanReinit, org.apache.hadoop.io.compress.Compressor
Hadoop compressor glue for lz4-java.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected long
protected long
protected net.jpountz.lz4.LZ4Compressor
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
-
compressor
-
inBuf
-
outBuf
-
bufferSize
-
finish
-
finished
-
bytesRead
-
bytesWritten
-
-
Constructor Details
-
Lz4Compressor
Lz4Compressor(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
-