@InterfaceAudience.Private public static class UnorderedKVOutput.CustomPartitioner extends Object implements Partitioner
| Constructor and Description |
|---|
CustomPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPartition(Object key,
Object value,
int numPartitions)
Get partition for given key/value.
|
public int getPartition(Object key, Object value, int numPartitions)
PartitionergetPartition in interface Partitionerkey - keyvalue - valuenumPartitions - number of partitionsCopyright © 2019 Apache Software Foundation. All rights reserved.