Class PartitioningEvent

    • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object