public class GroupingSortingPartitioner extends HasherPartitioner implements Partitioner<TuplePair,Tuple>
Partitioner
.TupleHasher.HashFunction
HASHER_PARTITIONER_USE_LEGACY_HASH
hashFunction
Constructor and Description |
---|
GroupingSortingPartitioner() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JobConf job) |
int |
getPartition(TuplePair key,
Tuple value,
int numReduceTasks) |
getConf, setConf
getHashFunction, hashCode, initialize, isNull, merge, wrapTuple
public GroupingSortingPartitioner()
public int getPartition(TuplePair key, Tuple value, int numReduceTasks)
getPartition
in interface Partitioner<TuplePair,Tuple>
public void configure(JobConf job)
configure
in interface JobConfigurable
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.