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
Modifier and TypeFieldDescriptionprotected int
protected long
protected long
protected boolean
protected boolean
protected ByteBuffer
protected ByteBuffer
protected com.aayushatharva.brotli4j.encoder.Encoder.Parameters
-
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
-
params
-
-
Constructor Details
-
BrotliCompressor
BrotliCompressor(int level, int window, 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
-