@InterfaceAudience.Private public final class Compression extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Compression.Algorithm
Compression algorithms.
|
(package private) static class |
Compression.FinishOnFlushCompressionStream |
Modifier and Type | Field and Description |
---|---|
static String |
BROTLI_CODEC_CLASS_DEFAULT |
static String |
BROTLI_CODEC_CLASS_KEY |
static String |
BZIP2_CODEC_CLASS_DEFAULT |
static String |
BZIP2_CODEC_CLASS_KEY |
static String |
GZ_CODEC_CLASS_DEFAULT |
static String |
GZ_CODEC_CLASS_KEY |
private static org.slf4j.Logger |
LOG |
static String |
LZ4_CODEC_CLASS_DEFAULT |
static String |
LZ4_CODEC_CLASS_KEY |
static String |
LZMA_CODEC_CLASS_DEFAULT |
static String |
LZMA_CODEC_CLASS_KEY |
static String |
LZO_CODEC_CLASS_DEFAULT |
static String |
LZO_CODEC_CLASS_KEY |
static String |
SNAPPY_CODEC_CLASS_DEFAULT |
static String |
SNAPPY_CODEC_CLASS_KEY |
static String |
ZSTD_CODEC_CLASS_DEFAULT |
static String |
ZSTD_CODEC_CLASS_KEY |
Modifier | Constructor and Description |
---|---|
private |
Compression()
Prevent the instantiation of class.
|
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.io.compress.CompressionCodec |
buildCodec(org.apache.hadoop.conf.Configuration conf,
Compression.Algorithm algo)
Load a codec implementation for an algorithm using the supplied configuration.
|
private static ClassLoader |
getClassLoaderForCodec()
Returns the classloader to load the Codec class from.
|
static Compression.Algorithm |
getCompressionAlgorithmByName(String compressName) |
static String[] |
getSupportedAlgorithms()
Get names of supported compression algorithms.
|
static void |
main(String[] args) |
private static final org.slf4j.Logger LOG
public static final String LZO_CODEC_CLASS_KEY
public static final String LZO_CODEC_CLASS_DEFAULT
public static final String GZ_CODEC_CLASS_KEY
public static final String GZ_CODEC_CLASS_DEFAULT
public static final String SNAPPY_CODEC_CLASS_KEY
public static final String SNAPPY_CODEC_CLASS_DEFAULT
public static final String LZ4_CODEC_CLASS_KEY
public static final String LZ4_CODEC_CLASS_DEFAULT
public static final String ZSTD_CODEC_CLASS_KEY
public static final String ZSTD_CODEC_CLASS_DEFAULT
public static final String BZIP2_CODEC_CLASS_KEY
public static final String BZIP2_CODEC_CLASS_DEFAULT
public static final String LZMA_CODEC_CLASS_KEY
public static final String LZMA_CODEC_CLASS_DEFAULT
public static final String BROTLI_CODEC_CLASS_KEY
public static final String BROTLI_CODEC_CLASS_DEFAULT
private Compression()
private static ClassLoader getClassLoaderForCodec()
public static Compression.Algorithm getCompressionAlgorithmByName(String compressName)
public static String[] getSupportedAlgorithms()
private static org.apache.hadoop.io.compress.CompressionCodec buildCodec(org.apache.hadoop.conf.Configuration conf, Compression.Algorithm algo)
conf
- the configuration to usealgo
- the algorithm to implementCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.