public class IndexUpdateMapper<K extends WritableComparable,V extends Writable> extends MapReduceBase implements Mapper<K,V,Shard,IntermediateForm>
| 构造器和说明 |
|---|
IndexUpdateMapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Default implementation that does nothing.
|
void |
configure(JobConf job)
Default implementation that does nothing.
|
static Class<? extends WritableComparable> |
getMapOutputKeyClass()
Get the map output key class.
|
static Class<? extends Writable> |
getMapOutputValueClass()
Get the map output value class.
|
void |
map(K key,
V value,
OutputCollector<Shard,IntermediateForm> output,
Reporter reporter)
Map a key-value pair to a shard-and-intermediate form pair.
|
public static Class<? extends WritableComparable> getMapOutputKeyClass()
public static Class<? extends Writable> getMapOutputValueClass()
public void map(K key, V value, OutputCollector<Shard,IntermediateForm> output, Reporter reporter) throws IOException
map 在接口中 Mapper<K extends WritableComparable,V extends Writable,Shard,IntermediateForm>key - the input key.value - the input value.output - collects mapped keys and values.reporter - facility to report progress.IOExceptionpublic void configure(JobConf job)
MapReduceBaseconfigure 在接口中 JobConfigurableconfigure 在类中 MapReduceBasejob - the configurationpublic void close()
throws IOException
MapReduceBaseclose 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 MapReduceBaseIOExceptionCopyright © 2009 The Apache Software Foundation