public class BucketShufflePartitioner extends Object implements SupportsLookupCustomShuffle.InputDataPartitioner
BucketShufflePartitioner
class partitions rows based on the bucket id. It uses a custom
strategy and an extractor to determine the target partition for a given set of join keys.Constructor and Description |
---|
BucketShufflePartitioner(ShuffleStrategy strategy,
BucketIdExtractor extractor) |
Modifier and Type | Method and Description |
---|---|
int |
partition(org.apache.flink.table.data.RowData joinKeys,
int numPartitions)
Determining the partition id for each input data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDeterministic
public BucketShufflePartitioner(ShuffleStrategy strategy, BucketIdExtractor extractor)
public int partition(org.apache.flink.table.data.RowData joinKeys, int numPartitions)
SupportsLookupCustomShuffle.InputDataPartitioner
This data is projected to only including all join keys before emit to this partitioner.
partition
in interface SupportsLookupCustomShuffle.InputDataPartitioner
joinKeys
- The extracted join key for each input record.numPartitions
- The total number of partition.Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.