public interface MapRunnable<K1,V1,K2,V2> extends JobConfigurable
Mapper
s.
Custom implementations of MapRunnable
can exert greater
control on map processing e.g. multi-threaded, asynchronous mappers etc.
Mapper
限定符和类型 | 方法和说明 |
---|---|
void |
run(RecordReader<K1,V1> input,
OutputCollector<K2,V2> output,
Reporter reporter)
Start mapping input <key, value> pairs.
|
configure
void run(RecordReader<K1,V1> input, OutputCollector<K2,V2> output, Reporter reporter) throws IOException
Mapping of input records to output records is complete when this method returns.
input
- the RecordReader
to read the input records.output
- the OutputCollector
to collect the outputrecords.reporter
- Reporter
to report progress, status-updates etc.IOException
Copyright © 2009 The Apache Software Foundation