org.apache.avro.mapred
Class AvroTextOutputFormat<K,V>

java.lang.Object
  extended by org.apache.hadoop.mapred.FileOutputFormat<K,V>
      extended by org.apache.avro.mapred.AvroTextOutputFormat<K,V>
All Implemented Interfaces:
org.apache.hadoop.mapred.OutputFormat<K,V>

public class AvroTextOutputFormat<K,V>
extends org.apache.hadoop.mapred.FileOutputFormat<K,V>

The equivalent of TextOutputFormat for writing to Avro Data Files with a "bytes" schema.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapred.FileOutputFormat
org.apache.hadoop.mapred.FileOutputFormat.Counter
 
Constructor Summary
AvroTextOutputFormat()
           
 
Method Summary
 org.apache.hadoop.mapred.RecordWriter<K,V> getRecordWriter(org.apache.hadoop.fs.FileSystem ignore, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable prog)
           
 
Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroTextOutputFormat

public AvroTextOutputFormat()
Method Detail

getRecordWriter

public org.apache.hadoop.mapred.RecordWriter<K,V> getRecordWriter(org.apache.hadoop.fs.FileSystem ignore,
                                                                  org.apache.hadoop.mapred.JobConf job,
                                                                  String name,
                                                                  org.apache.hadoop.util.Progressable prog)
                                                           throws IOException
Specified by:
getRecordWriter in interface org.apache.hadoop.mapred.OutputFormat<K,V>
Specified by:
getRecordWriter in class org.apache.hadoop.mapred.FileOutputFormat<K,V>
Throws:
IOException


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