public interface ShuffleStrategy extends Serializable
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
getRequiredCacheBucketIds(int subtaskId,
int numSubtasks)
Returns all the bucket IDs required for a given subtask.
|
int |
getTargetSubtaskId(int bucketId,
int joinKeyHash,
int numSubtasks)
Calculates and returns the subtask ID that a given bucket should be assigned to.
|
int getTargetSubtaskId(int bucketId, int joinKeyHash, int numSubtasks)
bucketId
- The ID of the bucket.joinKeyHash
- The hash value of the join key.numSubtasks
- The total number of subtasks.Set<Integer> getRequiredCacheBucketIds(int subtaskId, int numSubtasks)
subtaskId
- The ID of the subtask.numSubtasks
- The total number of subtasks.Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.