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