@Internal public class StreamOperatorWrapper<OUT,OP extends StreamOperator<OUT>> extends Object
StreamOperator. It
also automatically propagates the finish operation to the next wrapper that the next
points to, so we can use next to link all operator wrappers in the operator chain and
finish all operators only by calling the finish(StreamTaskActionExecutor, StopMode)
method of the header operator wrapper.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the operator.
|
void |
endOperatorInput(int inputId)
Ends an input of the operator contained by this wrapper.
|
void |
finish(StreamTaskActionExecutor actionExecutor,
org.apache.flink.runtime.io.network.api.StopMode stopMode)
Finishes the wrapped operator and propagates the finish operation to the next wrapper that
the
next points to. |
OP |
getStreamOperator() |
boolean |
isClosed()
Checks if the wrapped operator has been closed.
|
void |
notifyCheckpointComplete(long checkpointId) |
void |
notifyCheckpointSubsumed(long checkpointId) |
public boolean isClosed()
Note that this method must be called in the task thread.
public void endOperatorInput(int inputId)
throws Exception
inputId - the input ID starts from 1 which indicates the first input.Exceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
Exceptionpublic void notifyCheckpointSubsumed(long checkpointId)
throws Exception
Exceptionpublic OP getStreamOperator()
public void finish(StreamTaskActionExecutor actionExecutor, org.apache.flink.runtime.io.network.api.StopMode stopMode) throws Exception
next points to.
Note that this method must be called in the task thread, because we need to call MailboxExecutor.yield() to take the mails of closing operator and running timers and run
them.
ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.