Package org.apache.hadoop.mapred
Interface MapRunnable<K1,V1,K2,V2>
- All Superinterfaces:
JobConfigurable
- All Known Implementing Classes:
MapRunner,MultithreadedMapRunner
Expert: Generic interface for
Mappers.
Custom implementations of MapRunnable can exert greater
control on map processing e.g. multi-threaded, asynchronous mappers etc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(RecordReader<K1, V1> input, OutputCollector<K2, V2> output, Reporter reporter) Start mapping input<key, value>pairs.Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable
configure
-
Method Details
-
run
void run(RecordReader<K1, V1> input, OutputCollector<K2, throws IOExceptionV2> output, Reporter reporter) Start mapping input<key, value>pairs.Mapping of input records to output records is complete when this method returns.
- Parameters:
input- theRecordReaderto read the input records.output- theOutputCollectorto collect the outputrecords.reporter-Reporterto report progress, status-updates etc.- Throws:
IOException
-