@Internal public class StreamOperatorWrapper<OUT,OP extends StreamOperator<OUT>> extends Object
StreamOperator.
It also automatically propagates the close 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
close all operators only by calling the close(StreamTaskActionExecutor) method of the
header operator wrapper.| Modifier and Type | Method and Description |
|---|---|
void |
close(StreamTaskActionExecutor actionExecutor)
Closes the wrapped operator and propagates the close operation to the next wrapper that the
next points to. |
void |
endOperatorInput(int inputId)
Ends an input of the operator contained by this wrapper.
|
OP |
getStreamOperator() |
boolean |
isClosed()
Checks if the wrapped operator has been closed.
|
void |
notifyCheckpointComplete(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 OP getStreamOperator()
public void close(StreamTaskActionExecutor actionExecutor) 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–2020 The Apache Software Foundation. All rights reserved.