public final class KeyGroupAssignment extends Object
| Constructor and Description |
|---|
KeyGroupAssignment() |
| Modifier and Type | Method and Description |
|---|---|
static int |
assignKeyGroupIndexForKey(Object key,
int maxParallelism)
Assigning the key to a key-group index.
|
static Map<Integer,List<Integer>> |
computeKeyGroupToTask(int maxParallelism,
List<Integer> targetTasks) |
static KeyGroup |
getKeyGroup(int maxParallelism,
int parallelism,
int index)
Computes the range of key-groups that are assigned for a given operator instance.
|
public static KeyGroup getKeyGroup(int maxParallelism, int parallelism, int index)
maxParallelism - Maximal parallelism of the job.parallelism - Parallelism for the job. <= maxParallelism.index - index of the operator instance.public static int assignKeyGroupIndexForKey(Object key, int maxParallelism)
key - the key to assign.maxParallelism - the maximum parallelism.Copyright © 2020. All rights reserved.