@InterfaceAudience.Public @InterfaceStability.Stable public class InverseMapper<K,V> extends Mapper<K,V,V,K>
Mapper that swaps keys and values.| Constructor and Description |
|---|
InverseMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(K key,
V value,
org.apache.hadoop.mapreduce.Mapper.Context context)
The inverse function.
|
public InverseMapper()
public void map(K key, V value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map in class Mapper<K,V,V,K>IOExceptionInterruptedExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.