IdentityMapper (Hadoop 0.20.1+169.88 API)
Date: 2010-05-20

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.mapred.lib
Class IdentityMapper<K,V>

    java.lang.Object
      org.apache.hadoop.mapred.MapReduceBase
          org.apache.hadoop.mapred.lib.IdentityMapper<K,V>

All Implemented Interfaces:
  Closeable, JobConfigurable, Mapper<K,V,K,V>

Deprecated. Use `Mapper` instead.

    @Deprecated
    public class IdentityMapper<K,V>

extends MapReduceBase
implements Mapper<K,V,K,V>

Implements the identity function, mapping inputs directly to outputs.

Constructor Summary
`IdentityMapper()` Deprecated.

Method Summary
`void` | `map(K key, V val, OutputCollector<K,V> output, Reporter reporter)` Deprecated. The identify function.

Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
`close, configure`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable
`configure`

Methods inherited from interface java.io.Closeable
`close`

Constructor Detail

### IdentityMapper

    public IdentityMapper()

  Deprecated.

Method Detail

### map

    public void map(K key,
                    V val,
                    OutputCollector<K,V> output,
                    Reporter reporter)
             throws IOException

  Deprecated.
  The identify function. Input key/value pair is written directly to output.

  Specified by:
    `map` in interface `Mapper<K,V,K,V>`
  Parameters:
    `key` - the input key.
    `val` - the input value.
    `output` - collects mapped keys and values.
    `reporter` - facility to report progress.
  Throws:
    `IOException`

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