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.IOException
public void configure(JobConf job)
MapReduceBase
configure
在接口中 JobConfigurable
configure
在类中 MapReduceBase
job
- the configurationpublic void close() throws IOException
MapReduceBase
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 MapReduceBase
IOException
Copyright © 2009 The Apache Software Foundation