@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, boolean,
boolean)
method of the header operator wrapper.Modifier and Type | Method and Description |
---|---|
void |
close(StreamTaskActionExecutor actionExecutor,
boolean isStoppingBySyncSavepoint)
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 void close(StreamTaskActionExecutor actionExecutor, boolean isStoppingBySyncSavepoint) 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.
Exception
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.Exception
public void notifyCheckpointComplete(long checkpointId) throws Exception
Exception
public OP getStreamOperator()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.