InverseMapper (Hadoop 0.20.2-CDH3B4 API)
Date: 2011-02-21

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.mapreduce.lib.map
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 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
`Mapper.Context`

Constructor Summary
`InverseMapper()`

Method Summary
`void` | `map(K key, V value, 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`

Constructor Detail

### InverseMapper

    public InverseMapper()

Method Detail

### map

    public void map(K key,
                    V value,
                    Mapper.Context context)
             throws IOException,
                    InterruptedException

  The inverse function. Input keys and values are swapped.

  Overrides:
    `map` in class `Mapper<K,V,V,K>`
  Throws:
    `IOException`
    `InterruptedException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation