|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.contrib.index.mapred.IndexUpdateMapper<K,V>
public class IndexUpdateMapper<K extends WritableComparable,V extends Writable>
This class applies local analysis on a key-value pair and then convert the result docid-operation pair to a shard-and-intermediate form pair.
| Constructor Summary | |
|---|---|
IndexUpdateMapper()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexUpdateMapper()
| Method Detail |
|---|
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 in interface 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)
MapReduceBase
configure in interface JobConfigurableconfigure in class MapReduceBasejob - the configuration
public void close()
throws IOException
MapReduceBase
close in interface Closeableclose in class MapReduceBaseIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||