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>
IOException
InterruptedException
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
close
in class org.apache.hadoop.mapreduce.RecordWriter<K,V>
IOException
InterruptedException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.