Class InverseMapper<K,V>

java.lang.Object
org.apache.hadoop.mapreduce.Mapper<K,V,V,K>
org.apache.hadoop.mapreduce.lib.map.InverseMapper<K,V>

@Public @Stable public class InverseMapper<K,V> extends Mapper<K,V,V,K>
A Mapper that swaps keys and values.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper

    org.apache.hadoop.mapreduce.Mapper.Context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    map(K key, V value, Mapper<K,V,V,K>.org.apache.hadoop.mapreduce.Mapper.Context context)
    The inverse function.

    Methods inherited from class org.apache.hadoop.mapreduce.Mapper

    cleanup, run, setup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait