Package org.apache.flink.cdc.common.sink
Class DefaultDataChangeEventHashFunctionProvider
- java.lang.Object
-
- org.apache.flink.cdc.common.sink.DefaultDataChangeEventHashFunctionProvider
-
- All Implemented Interfaces:
Serializable,HashFunctionProvider<DataChangeEvent>
public class DefaultDataChangeEventHashFunctionProvider extends Object implements HashFunctionProvider<DataChangeEvent>
The defaultHashFunctionProviderimplementation for data change event.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultDataChangeEventHashFunctionProvider()
-
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
-
-