public class TFileRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple>
InterRecordWriter
It uses the default InterSedes object for serialization.| Constructor and Description |
|---|
TFileRecordWriter(org.apache.hadoop.fs.Path file,
String codec,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext arg0) |
void |
write(org.apache.hadoop.io.WritableComparable wc,
Tuple t) |
public TFileRecordWriter(org.apache.hadoop.fs.Path file,
String codec,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext arg0)
throws IOException,
InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple>IOExceptionInterruptedExceptionpublic void write(org.apache.hadoop.io.WritableComparable wc,
Tuple t)
throws IOException,
InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple>IOExceptionInterruptedExceptionCopyright © 2007-2017 The Apache Software Foundation