java.lang.Object org.apache.hadoop.mapred.lib.HashPartitioner<K2,V2>
public class HashPartitioner<K2,V2>
Partition keys by their Object.hashCode()
.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
HashPartitioner
public HashPartitioner()
public void configure(JobConf job)
JobConfigurable
JobConf
.
configure
in interface JobConfigurable
job
- the configuration
public int getPartition(K2 key, V2 value, int numReduceTasks)
Object.hashCode()
to partition.
getPartition
in interface Partitioner<K2,V2>
key
- the key to be paritioned.
value
- the entry value.
numReduceTasks
- the total number of partitions.
key
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4