public class AvroRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,Object>
Constructor and Description |
---|
AvroRecordWriter(org.apache.hadoop.fs.Path o,
org.apache.hadoop.conf.Configuration c)
Creates new AvroRecordWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext arg0) |
void |
prepareToWrite(org.apache.avro.Schema s) |
void |
write(org.apache.hadoop.io.NullWritable key,
Object value) |
public AvroRecordWriter(org.apache.hadoop.fs.Path o, org.apache.hadoop.conf.Configuration c) throws IOException
s
- Schema for the files on this output patho
- Output pathc
- Hadoop configurationIOException
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext arg0) throws IOException, InterruptedException
close
in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,Object>
IOException
InterruptedException
public void write(org.apache.hadoop.io.NullWritable key, Object value) throws IOException, InterruptedException
write
in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,Object>
IOException
InterruptedException
public void prepareToWrite(org.apache.avro.Schema s) throws IOException
IOException
Copyright © 2007-2012 The Apache Software Foundation