K - the key typeV - the value typepublic class ShuffleWriter<K,V>
extends org.apache.hadoop.mapreduce.RecordWriter<K,V>
RecordWriter for shuffle input.| Constructor and Description |
|---|
ShuffleWriter(KeyValueSorter<K,V> sorter)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(K key,
V value) |
public ShuffleWriter(KeyValueSorter<K,V> sorter)
sorter - the key value sorterpublic 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 © 2011–2019 Asakusa Framework Team. All rights reserved.