Class BrotliCompressor
java.lang.Object
org.apache.hadoop.hbase.io.compress.brotli.BrotliCompressor
- All Implemented Interfaces:
CanReinit,org.apache.hadoop.io.compress.Compressor
@Private
public class BrotliCompressor
extends Object
implements CanReinit, org.apache.hadoop.io.compress.Compressor
Hadoop compressor glue for Brotli4j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected longprotected longprotected booleanprotected booleanprotected ByteBufferprotected ByteBufferprotected com.aayushatharva.brotli4j.encoder.Encoder.Parameters -
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
-
inBuf
-
outBuf
-
bufferSize
-
finish
-
finished
-
bytesRead
-
bytesWritten
-
params
-
-
Constructor Details
-
BrotliCompressor
BrotliCompressor(int level, int window, 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
-