public class PigAvroRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,Object>
Constructor and Description |
---|
PigAvroRecordWriter(org.apache.avro.file.DataFileWriter<Object> writer)
construct with avro writer
|
Modifier and Type | Method and Description |
---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(org.apache.hadoop.io.NullWritable key,
Object value) |
public PigAvroRecordWriter(org.apache.avro.file.DataFileWriter<Object> writer)
writer
- avro data writerpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) 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
Copyright © 2007-2017 The Apache Software Foundation