@Internal public class RegularOperatorChain<OUT,OP extends StreamOperator<OUT>> extends OperatorChain<OUT,OP>
OperatorChain.OperatorChain.ChainedSourcechainedSources, closer, finishedOnRestoreInput, firstOperatorWrapper, isClosed, mainOperatorOutput, mainOperatorWrapper, numOperators, operatorEventDispatcher, streamOutputs, tailOperatorWrapper| 构造器和说明 |
|---|
RegularOperatorChain(StreamTask<OUT,OP> containingTask,
org.apache.flink.runtime.io.network.api.writer.RecordWriterDelegate<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriterDelegate) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
This method releases all resources of the record writer output.
|
void |
closeAllOperators()
Execute
StreamOperator.close() of each operator in the chain of this StreamTask. |
void |
dispatchOperatorEvent(org.apache.flink.runtime.jobgraph.OperatorID operator,
org.apache.flink.util.SerializedValue<org.apache.flink.runtime.operators.coordination.OperatorEvent> event) |
void |
endInput(int inputId)
Ends the main operator input specified by
inputId). |
void |
finishOperators(StreamTaskActionExecutor actionExecutor,
org.apache.flink.runtime.io.network.api.StopMode stopMode)
Closes all operators in a chain effect way.
|
void |
initializeStateAndOpenOperators(StreamTaskStateInitializer streamTaskStateInitializer)
Initialize state and open all operators in the chain from tail to heads, contrary to
StreamOperator.close() which happens heads to tail (see OperatorChain.finishOperators(StreamTaskActionExecutor, StopMode)). |
boolean |
isTaskDeployedAsFinished() |
void |
notifyCheckpointAborted(long checkpointId) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
notifyCheckpointSubsumed(long checkpointId) |
void |
prepareSnapshotPreBarrier(long checkpointId) |
void |
snapshotState(Map<org.apache.flink.runtime.jobgraph.OperatorID,OperatorSnapshotFutures> operatorSnapshotsInProgress,
org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions,
java.util.function.Supplier<Boolean> isRunning,
org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter.ChannelStateWriteResult channelStateWriteResult,
org.apache.flink.runtime.state.CheckpointStreamFactory storage) |
abortCheckpoint, alignedBarrierTimeout, broadcastEvent, broadcastEvent, flushOutputs, getAllOperators, getAllOperators, getChainedSource, getChainedSourceOutputs, getFinishedOnRestoreInputOrDefault, getMainOperator, getMainOperatorOutput, getNumberOfOperators, getOperatorEventDispatcher, getSourceTaskInput, getSourceTaskInputs, getStreamOutputs, getTailOperator, isClosed, sendAcknowledgeCheckpointEvent, snapshotChannelStatespublic RegularOperatorChain(StreamTask<OUT,OP> containingTask, org.apache.flink.runtime.io.network.api.writer.RecordWriterDelegate<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriterDelegate)
public boolean isTaskDeployedAsFinished()
isTaskDeployedAsFinished 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>public void dispatchOperatorEvent(org.apache.flink.runtime.jobgraph.OperatorID operator,
org.apache.flink.util.SerializedValue<org.apache.flink.runtime.operators.coordination.OperatorEvent> event)
throws org.apache.flink.util.FlinkException
dispatchOperatorEvent 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>org.apache.flink.util.FlinkExceptionpublic void prepareSnapshotPreBarrier(long checkpointId)
throws Exception
prepareSnapshotPreBarrier 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void endInput(int inputId)
throws Exception
OperatorChaininputId).endInput 在接口中 BoundedMultiInputendInput 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>inputId - the input ID starts from 1 which indicates the first input.Exceptionpublic void initializeStateAndOpenOperators(StreamTaskStateInitializer streamTaskStateInitializer) throws Exception
OperatorChainStreamOperator.close() which happens heads to tail (see OperatorChain.finishOperators(StreamTaskActionExecutor, StopMode)).initializeStateAndOpenOperators 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void finishOperators(StreamTaskActionExecutor actionExecutor, org.apache.flink.runtime.io.network.api.StopMode stopMode) throws Exception
OperatorChainStreamOperator.open() which happens tail to
heads (see OperatorChain.initializeStateAndOpenOperators(StreamTaskStateInitializer)).finishOperators 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void closeAllOperators()
throws Exception
OperatorChainStreamOperator.close() of each operator in the chain of this StreamTask. Closing happens from tail to head operator in the chain.closeAllOperators 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void close()
throws IOException
OperatorChainThis method should never fail.
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>IOExceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointAborted(long checkpointId)
throws Exception
notifyCheckpointAborted 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointSubsumed(long checkpointId)
throws Exception
notifyCheckpointSubsumed 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void snapshotState(Map<org.apache.flink.runtime.jobgraph.OperatorID,OperatorSnapshotFutures> operatorSnapshotsInProgress, org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions, java.util.function.Supplier<Boolean> isRunning, org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter.ChannelStateWriteResult channelStateWriteResult, org.apache.flink.runtime.state.CheckpointStreamFactory storage) throws Exception
snapshotState 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.