org.apache.hadoop.mapreduce.lib.input
Class DelegatingMapper<K1,V1,K2,V2>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<K1,V1,K2,V2>
      extended by org.apache.hadoop.mapreduce.lib.input.DelegatingMapper<K1,V1,K2,V2>

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class DelegatingMapper<K1,V1,K2,V2>
extends Mapper<K1,V1,K2,V2>

An Mapper that delegates behavior of paths to multiple other mappers.

See Also:
MultipleInputs.addInputPath(Job, Path, Class, Class)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
 
Constructor Summary
DelegatingMapper()
           
 
Method Summary
 void run(Mapper.Context context)
          Expert users can override this method for more complete control over the execution of the Mapper.
protected  void setup(Mapper.Context context)
          Called once at the beginning of the task.
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingMapper

public DelegatingMapper()
Method Detail

setup

protected void setup(Mapper.Context context)
              throws IOException,
                     InterruptedException
Description copied from class: Mapper
Called once at the beginning of the task.

Overrides:
setup in class Mapper<K1,V1,K2,V2>
Throws:
IOException
InterruptedException

run

public void run(Mapper.Context context)
         throws IOException,
                InterruptedException
Description copied from class: Mapper
Expert users can override this method for more complete control over the execution of the Mapper.

Overrides:
run in class Mapper<K1,V1,K2,V2>
Throws:
IOException
InterruptedException


Copyright © 2009 The Apache Software Foundation