public class InverseMapper<K,V> extends MapReduceBase implements Mapper<K,V,V,K>
Mapper
that swaps keys and values.构造器和说明 |
---|
InverseMapper() |
限定符和类型 | 方法和说明 |
---|---|
void |
map(K key,
V value,
OutputCollector<V,K> output,
Reporter reporter)
The inverse function.
|
close, configure
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
public void map(K key, V value, OutputCollector<V,K> output, Reporter reporter) throws IOException
Copyright © 2009 The Apache Software Foundation