T - the type of given element@Internal public interface HashFunctionProvider<T> extends Serializable
HashFunction to help PrePartitionOperator to shuffle event
to designated subtask. This is usually beneficial for load balancing, when writing to different
partitions/buckets in DataSink, add custom implementation to further improve efficiency.| 限定符和类型 | 方法和说明 |
|---|---|
HashFunction<T> |
getHashFunction(TableId tableId,
Schema schema)
Gets a hash function based on the given table ID and schema, to help
PrePartitionOperator to shuffle DataChangeEvent to designated subtask. |
HashFunction<T> getHashFunction(@Nullable TableId tableId, Schema schema)
PrePartitionOperator to shuffle DataChangeEvent to designated subtask.tableId - table IDschema - flink table schemaCopyright © 2025 The Apache Software Foundation. All rights reserved.