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 configurationIOExceptionpublic 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>IOExceptionInterruptedExceptionpublic 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>IOExceptionInterruptedExceptionpublic void prepareToWrite(org.apache.avro.Schema s)
throws IOException
IOExceptionCopyright © 2007-2017 The Apache Software Foundation