public class HadoopCodecFactory extends Object
org.apache.hadoop.io.compress.DeflateCodec
will map to
deflate
org.apache.hadoop.io.compress.SnappyCodec
will map to
snappy
org.apache.hadoop.io.compress.BZip2Codec
will map to
zbip2
org.apache.hadoop.io.compress.GZipCodec
will map to
deflate
Constructor and Description |
---|
HadoopCodecFactory() |
Modifier and Type | Method and Description |
---|---|
static CodecFactory |
fromHadoopString(String hadoopCodecClass)
Maps a hadoop codec name into a CodecFactory.
|
static String |
getAvroCodecName(String hadoopCodecClass) |
public static CodecFactory fromHadoopString(String hadoopCodecClass)
org.apache.hadoop.io.compress.DeflateCodec
will map to
deflate
org.apache.hadoop.io.compress.SnappyCodec
will map to
snappy
org.apache.hadoop.io.compress.BZip2Codec
will map to
zbip2
org.apache.hadoop.io.compress.GZipCodec
will map to
deflate
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.