org.apache.avro.hadoop.file
Class HadoopCodecFactory

java.lang.Object
  extended by org.apache.avro.hadoop.file.HadoopCodecFactory

public class HadoopCodecFactory
extends Object

Encapsulates the ability to specify and configure an avro compression codec from a given hadoop codec defined with the configuration parameter: mapred.output.compression.codec Currently there are three codecs registered by default:

New and custom codecs can be registered using #addCodec(String, CodecFactory).


Constructor Summary
HadoopCodecFactory()
           
 
Method Summary
static org.apache.avro.file.CodecFactory fromHadoopString(String hadoopCodecClass)
          Maps a hadoop codec name into a CodecFactory.
static String getAvroCodecName(String hadoopCodecClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopCodecFactory

public HadoopCodecFactory()
Method Detail

fromHadoopString

public static org.apache.avro.file.CodecFactory fromHadoopString(String hadoopCodecClass)
Maps a hadoop codec name into a CodecFactory. Currently there are four hadoop codecs registered:


getAvroCodecName

public static String getAvroCodecName(String hadoopCodecClass)


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.