Class MaxComputeHashFunctionProvider
- java.lang.Object
-
- org.apache.flink.cdc.connectors.maxcompute.sink.MaxComputeHashFunctionProvider
-
- All Implemented Interfaces:
Serializable,HashFunctionProvider<DataChangeEvent>
public class MaxComputeHashFunctionProvider extends Object implements HashFunctionProvider<DataChangeEvent>
Hash function for maxcompute to distribute data change event to different maxcompute sink by primary key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxComputeHashFunctionProvider(MaxComputeOptions options)
-
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.
-
-
-
Constructor Detail
-
MaxComputeHashFunctionProvider
public MaxComputeHashFunctionProvider(MaxComputeOptions options)
-
-
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
-
-