Class StreamIterationHead<OUT>

All Implemented Interfaces:
CheckpointableTask, CoordinatedTask, TaskInvokable, AsyncExceptionHandler, ContainingTaskDetails

@Internal public class StreamIterationHead<OUT> extends OneInputStreamTask<OUT,OUT>
A special StreamTask that is used for executing feedback edges. This is used in combination with StreamIterationTail.
  • Constructor Details

  • Method Details

    • processInput

      protected void processInput(MailboxDefaultAction.Controller controller) throws Exception
      Description copied from class: StreamTask
      This method implements the default action of the task (e.g. processing one event from the input). Implementations should (in general) be non-blocking.
      Overrides:
      processInput in class StreamTask<OUT,OneInputStreamOperator<OUT,OUT>>
      Parameters:
      controller - controller object for collaborative interaction between the action and the stream task.
      Throws:
      Exception - on any problems in the action.
    • init

      public void init()
      Overrides:
      init in class OneInputStreamTask<OUT,OUT>
    • cleanUpInternal

      protected void cleanUpInternal()
      Overrides:
      cleanUpInternal in class StreamTask<OUT,OneInputStreamOperator<OUT,OUT>>
    • createBrokerIdString

      public static String createBrokerIdString(org.apache.flink.api.common.JobID jid, String iterationID, int subtaskIndex)
      Creates the identification string with which head and tail task find the shared blocking queue for the back channel. The identification string is unique per parallel head/tail pair per iteration per job.
      Parameters:
      jid - The job ID.
      iterationID - The id of the iteration in the job.
      subtaskIndex - The parallel subtask number
      Returns:
      The identification string.