Class PaimonHashFunction
- java.lang.Object
-
- org.apache.flink.cdc.connectors.paimon.sink.PaimonHashFunction
-
- All Implemented Interfaces:
Serializable,HashFunction<DataChangeEvent>
public class PaimonHashFunction extends Object implements HashFunction<DataChangeEvent>, Serializable
AHashFunctionimplementation forPaimonDataSink. ShuffleDataChangeEventby hash of PrimaryKey.Table type (append-only vs. primary-key) is inferred directly from the CDC
Schemainstead of querying the Paimon catalog. This avoids aTableNotExistExceptionwhen the target table has not yet been created byMetadataApplier, which can happen in distributed pipeline topologies where pre-partitioning precedes schema coordination.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.cdc.common.function.HashFunction
HashFunction.HashContext
-
-
Constructor Summary
Constructors Constructor Description PaimonHashFunction(Schema schema, java.time.ZoneId zoneId, int parallelism)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description inthashcode(DataChangeEvent event)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.cdc.common.function.HashFunction
hashcode
-
-
-
-
Constructor Detail
-
PaimonHashFunction
public PaimonHashFunction(Schema schema, java.time.ZoneId zoneId, int parallelism)
-
-
Method Detail
-
hashcode
public int hashcode(DataChangeEvent event)
- Specified by:
hashcodein interfaceHashFunction<DataChangeEvent>
-
-