Package org.apache.hadoop.mapred
Class MapRunner<K1,V1,K2,V2>
java.lang.Object
org.apache.hadoop.mapred.MapRunner<K1,V1,K2,V2>
- All Implemented Interfaces:
JobConfigurable,MapRunnable<K1,V1, K2, V2>
@Public
@Stable
public class MapRunner<K1,V1,K2,V2>
extends Object
implements MapRunnable<K1,V1,K2,V2>
Default
MapRunnable implementation.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapRunner
public MapRunner()
-
-
Method Details
-
configure
Description copied from interface:JobConfigurableInitializes a new instance from aJobConf.- Specified by:
configurein interfaceJobConfigurable- Parameters:
job- the configuration
-
run
public void run(RecordReader<K1, V1> input, OutputCollector<K2, throws IOExceptionV2> output, Reporter reporter) Description copied from interface:MapRunnableStart mapping input<key, value>pairs.Mapping of input records to output records is complete when this method returns.
- Specified by:
runin interfaceMapRunnable<K1,V1, K2, V2> - Parameters:
input- theRecordReaderto read the input records.output- theOutputCollectorto collect the outputrecords.reporter-Reporterto report progress, status-updates etc.- Throws:
IOException
-
getMapper
-