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