public class ConvertingRecordWriter<K,V>
extends org.apache.hadoop.mapreduce.RecordWriter<K,V>
| Constructor and Description |
|---|
ConvertingRecordWriter(org.apache.hadoop.mapreduce.RecordWriter<Object,Object> recordWriter,
KeyValueConverter<Object,Object,K,V> keyValueConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(K key,
V value) |
public void write(K key, V value) throws IOException, InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<K,V>IOExceptionInterruptedExceptionpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<K,V>IOExceptionInterruptedExceptionCopyright © 2019 JBoss, a division of Red Hat. All rights reserved.