Class PartitioningEvent
- java.lang.Object
-
- org.apache.flink.cdc.runtime.partitioning.PartitioningEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)EventgetPayload()intgetSourcePartition()intgetTargetPartition()inthashCode()static PartitioningEventofDistributed(Event payload, int sourcePartition, int targetPartition)For distributed topology, we need to track its upstream source subTask ID to correctly distinguish events from different partitions.static PartitioningEventofRegular(Event payload, int targetPartition)For partitioning events with regular topology, source partition information is not necessary.StringtoString()
-
-
-
Method Detail
-
ofRegular
public static PartitioningEvent ofRegular(Event payload, int targetPartition)
For partitioning events with regular topology, source partition information is not necessary.
-
ofDistributed
public static PartitioningEvent ofDistributed(Event payload, int sourcePartition, int targetPartition)
For distributed topology, we need to track its upstream source subTask ID to correctly distinguish events from different partitions.
-
getPayload
public Event getPayload()
-
getSourcePartition
public int getSourcePartition()
-
getTargetPartition
public int getTargetPartition()
-
-