@InterfaceAudience.Private public class BrotliCodec extends Object implements org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.compress.CompressionCodec
Modifier and Type | Field and Description |
---|---|
static int |
BROTLI_BUFFERSIZE_DEFAULT |
static String |
BROTLI_BUFFERSIZE_KEY |
static int |
BROTLI_LEVEL_DEFAULT |
static String |
BROTLI_LEVEL_KEY |
static int |
BROTLI_WINDOW_DEFAULT |
static String |
BROTLI_WINDOW_KEY |
private org.apache.hadoop.conf.Configuration |
conf |
Constructor and Description |
---|
BrotliCodec() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.compress.Compressor |
createCompressor() |
org.apache.hadoop.io.compress.Decompressor |
createDecompressor() |
org.apache.hadoop.io.compress.CompressionInputStream |
createInputStream(InputStream in) |
org.apache.hadoop.io.compress.CompressionInputStream |
createInputStream(InputStream in,
org.apache.hadoop.io.compress.Decompressor d) |
org.apache.hadoop.io.compress.CompressionOutputStream |
createOutputStream(OutputStream out) |
org.apache.hadoop.io.compress.CompressionOutputStream |
createOutputStream(OutputStream out,
org.apache.hadoop.io.compress.Compressor c) |
(package private) static int |
getBufferSize(org.apache.hadoop.conf.Configuration conf) |
Class<? extends org.apache.hadoop.io.compress.Compressor> |
getCompressorType() |
org.apache.hadoop.conf.Configuration |
getConf() |
Class<? extends org.apache.hadoop.io.compress.Decompressor> |
getDecompressorType() |
String |
getDefaultExtension() |
(package private) static int |
getLevel(org.apache.hadoop.conf.Configuration conf) |
(package private) static int |
getWindow(org.apache.hadoop.conf.Configuration conf) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final String BROTLI_LEVEL_KEY
public static final int BROTLI_LEVEL_DEFAULT
public static final String BROTLI_WINDOW_KEY
public static final int BROTLI_WINDOW_DEFAULT
public static final String BROTLI_BUFFERSIZE_KEY
public static final int BROTLI_BUFFERSIZE_DEFAULT
private org.apache.hadoop.conf.Configuration conf
public BrotliCodec()
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.io.compress.Compressor createCompressor()
createCompressor
in interface org.apache.hadoop.io.compress.CompressionCodec
public org.apache.hadoop.io.compress.Decompressor createDecompressor()
createDecompressor
in interface org.apache.hadoop.io.compress.CompressionCodec
public org.apache.hadoop.io.compress.CompressionInputStream createInputStream(InputStream in) throws IOException
createInputStream
in interface org.apache.hadoop.io.compress.CompressionCodec
IOException
public org.apache.hadoop.io.compress.CompressionInputStream createInputStream(InputStream in, org.apache.hadoop.io.compress.Decompressor d) throws IOException
createInputStream
in interface org.apache.hadoop.io.compress.CompressionCodec
IOException
public org.apache.hadoop.io.compress.CompressionOutputStream createOutputStream(OutputStream out) throws IOException
createOutputStream
in interface org.apache.hadoop.io.compress.CompressionCodec
IOException
public org.apache.hadoop.io.compress.CompressionOutputStream createOutputStream(OutputStream out, org.apache.hadoop.io.compress.Compressor c) throws IOException
createOutputStream
in interface org.apache.hadoop.io.compress.CompressionCodec
IOException
public Class<? extends org.apache.hadoop.io.compress.Compressor> getCompressorType()
getCompressorType
in interface org.apache.hadoop.io.compress.CompressionCodec
public Class<? extends org.apache.hadoop.io.compress.Decompressor> getDecompressorType()
getDecompressorType
in interface org.apache.hadoop.io.compress.CompressionCodec
public String getDefaultExtension()
getDefaultExtension
in interface org.apache.hadoop.io.compress.CompressionCodec
static int getLevel(org.apache.hadoop.conf.Configuration conf)
static int getWindow(org.apache.hadoop.conf.Configuration conf)
static int getBufferSize(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.