@InterfaceAudience.Public @InterfaceStability.Stable 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
Modifier and Type | Method and Description |
---|---|
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 © 2020 Apache Software Foundation. All rights reserved.