public static interface PartialKeyGrouping.AssignmentCreator extends Serializable
This interface is responsible for choosing a subset of the target tasks to use for a given key.
NOTE: whatever scheme you use to create the assignment should be deterministic. This may be executed on multiple Storm Workers, thus each of them needs to come up with the same assignment for a given key.
Modifier and Type | Method and Description |
---|---|
int[] |
createAssignment(List<Integer> targetTasks,
byte[] key) |
Copyright © 2022 The Apache Software Foundation. All rights reserved.