Package org.apache.flink.cdc.common.sink
Class ForwardHashFunctionProvider
- java.lang.Object
-
- org.apache.flink.cdc.common.sink.ForwardHashFunctionProvider
-
- All Implemented Interfaces:
Serializable,HashFunctionProvider<DataChangeEvent>
@Internal public class ForwardHashFunctionProvider extends Object implements HashFunctionProvider<DataChangeEvent>
AHashFunctionProviderthat preserves the upstream subtask distribution.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForwardHashFunctionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashFunction<DataChangeEvent>getHashFunction(TableId tableId, Schema schema)Gets a hash function based on the given table ID and schema, to helpPrePartitionOperatorto shuffleDataChangeEventto designated subtask.
-
-
-
Method Detail
-
getHashFunction
public HashFunction<DataChangeEvent> getHashFunction(@Nullable TableId tableId, Schema schema)
Description copied from interface:HashFunctionProviderGets a hash function based on the given table ID and schema, to helpPrePartitionOperatorto shuffleDataChangeEventto designated subtask.- Specified by:
getHashFunctionin interfaceHashFunctionProvider<DataChangeEvent>- Parameters:
tableId- table IDschema- flink table schema- Returns:
- hash function based on the given table ID and schema
-
-