WrappedMapper (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.mapreduce.lib.map, class: WrappedMapper

Package org.apache.hadoop.mapreduce.lib.map

# Class WrappedMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>

java.lang.Object
org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
org.apache.hadoop.mapreduce.lib.map.WrappedMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>

@Public @Evolving public class WrappedMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT> extends Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
A `Mapper` which wraps a given one to allow custom `Mapper.Context` implementations.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `class`
  `org.apache.hadoop.mapreduce.lib.map.WrappedMapper.Context`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WrappedMapper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>.org.apache.hadoop.mapreduce.Mapper.Context`
  `getMapContext(MapContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT> mapContext)`
  Get a wrapped `Mapper.Context` for custom implementations.

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

  `cleanup, map, run, setup`

  ### Methods inherited from class java.lang.Object

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

- ## Constructor Details

  - ### WrappedMapper

    public WrappedMapper()

- ## Method Details

  - ### getMapContext

    public Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>.org.apache.hadoop.mapreduce.Mapper.Context getMapContext(MapContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT> mapContext)
    Get a wrapped `Mapper.Context` for custom implementations.
    Parameters:
      `mapContext` - `MapContext` to be wrapped
    Returns:
      a wrapped `Mapper.Context` for custom implementations