类 NoMoreElementEvent

  • 所有已实现的接口:
    Serializable, org.apache.flink.api.connector.source.SourceEvent

    public final class NoMoreElementEvent
    extends Object
    implements org.apache.flink.api.connector.source.SourceEvent
    This event represents that there is no more data to read, the execution process is as follows:

    1. When a SourceReader has no more data to read, it will invoke SourceReader.Context.signalNoMoreElement() and send this event to FlinkSourceEnumerator.
    2. After FlinkSourceEnumerator received this event and invoke SplitEnumeratorContext.sendEventToSourceReader(int, SourceEvent) send this event to FlinkSourceReader.
    3. After FlinkSourceReader received this event and change InputStatus from MORE_AVAILABLE to END_INPUT.

    另请参阅:
    序列化表格
    • 构造器详细资料

      • NoMoreElementEvent

        public NoMoreElementEvent​(int subTaskIndex)
    • 方法详细资料

      • getSubTaskIndex

        public int getSubTaskIndex()