@Internal public class KeyGroupRangePartitioner extends Object implements Partitioner<Integer>
Constructor and Description |
---|
KeyGroupRangePartitioner(int maxParallelism) |
Modifier and Type | Method and Description |
---|---|
int |
partition(Integer key,
int numPartitions)
Computes the partition for the given key.
|
public int partition(Integer key, int numPartitions)
Partitioner
partition
in interface Partitioner<Integer>
key
- The key.numPartitions
- The number of partitions to partition into.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.