This project has retired. For details please refer to its
Attic page .
AvroOutputFormat (Apache Crunch 0.4.0-incubating API)
org.apache.crunch.types.avro
Class AvroOutputFormat<T>
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.avro.mapred.AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
org.apache.crunch.types.avro.AvroOutputFormat<T>
public class AvroOutputFormat<T> extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.avro.mapred.AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
An OutputFormat
for Avro data files.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter
Method Summary
org.apache.hadoop.mapreduce.RecordWriter<org.apache.avro.mapred.AvroWrapper<T >,org.apache.hadoop.io.NullWritable>
getRecordWriter (org.apache.hadoop.mapreduce.TaskAttemptContext context)
Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
AvroOutputFormat
public AvroOutputFormat ()
getRecordWriter
public org.apache.hadoop.mapreduce.RecordWriter<org.apache.avro.mapred.AvroWrapper<T >,org.apache.hadoop.io.NullWritable> getRecordWriter (org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException ,
InterruptedException
Specified by: getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.avro.mapred.AvroWrapper<T >,org.apache.hadoop.io.NullWritable>
Throws:
IOException
InterruptedException
Copyright © 2012 The Apache Software Foundation . All Rights Reserved.