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
FieldsModifier and TypeFieldDescriptionprotected intprotected longprotected longprotected net.jpountz.lz4.LZ4Compressorprotected booleanprotected booleanprotected ByteBufferprotected ByteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompress(byte[] b, int off, int len) voidend()voidfinish()booleanfinished()longlong(package private) intmaxCompressedLength(int len) booleanvoidreinit(org.apache.hadoop.conf.Configuration conf) voidreset()voidsetDictionary(byte[] b, int off, int len) voidsetInput(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:
compressin interfaceorg.apache.hadoop.io.compress.Compressor- Throws:
IOException
-
end
- Specified by:
endin interfaceorg.apache.hadoop.io.compress.Compressor
-
finish
- Specified by:
finishin interfaceorg.apache.hadoop.io.compress.Compressor
-
finished
- Specified by:
finishedin interfaceorg.apache.hadoop.io.compress.Compressor
-
getBytesRead
- Specified by:
getBytesReadin interfaceorg.apache.hadoop.io.compress.Compressor
-
getBytesWritten
- Specified by:
getBytesWrittenin interfaceorg.apache.hadoop.io.compress.Compressor
-
needsInput
- Specified by:
needsInputin interfaceorg.apache.hadoop.io.compress.Compressor
-
reinit
-
reset
- Specified by:
resetin interfaceorg.apache.hadoop.io.compress.Compressor
-
setDictionary
- Specified by:
setDictionaryin interfaceorg.apache.hadoop.io.compress.Compressor
-
setInput
- Specified by:
setInputin interfaceorg.apache.hadoop.io.compress.Compressor
-
maxCompressedLength
-