Class SubtaskConnectionDescriptor

java.lang.Object
org.apache.flink.runtime.event.AbstractEvent
org.apache.flink.runtime.event.RuntimeEvent
org.apache.flink.runtime.io.network.api.SubtaskConnectionDescriptor
All Implemented Interfaces:
org.apache.flink.core.io.IOReadableWritable

public final class SubtaskConnectionDescriptor extends RuntimeEvent
An event that is used to (de)multiplex old channels over the same new channel.

During unaligned checkpoint recovery, if there is a rescaling, channels from the previous run may not be available anymore for restoring the data. In that case, the data of several old channels is sent over the same new channel through multiplexing. Each buffer is following this SubtaskConnectionDescriptor such that the receiver can demultiplex them.

  • Constructor Details

    • SubtaskConnectionDescriptor

      public SubtaskConnectionDescriptor(int inputSubtaskIndex, int outputSubtaskIndex)
  • Method Details

    • write

      public void write(org.apache.flink.core.memory.DataOutputView out)
    • read

      public void read(org.apache.flink.core.memory.DataInputView in)
    • getInputSubtaskIndex

      public int getInputSubtaskIndex()
    • getOutputSubtaskIndex

      public int getOutputSubtaskIndex()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object