@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| Constructor and Description |
|---|
RegularOperatorChain(StreamTask<OUT,OP> containingTask,
org.apache.flink.runtime.io.network.api.writer.RecordWriterDelegate<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriterDelegate) |
| Modifier and Type | Method and Description |
|---|---|
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 in class 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 in class OperatorChain<OUT,OP extends StreamOperator<OUT>>org.apache.flink.util.FlinkExceptionpublic void prepareSnapshotPreBarrier(long checkpointId)
throws Exception
prepareSnapshotPreBarrier in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void endInput(int inputId)
throws Exception
OperatorChaininputId).endInput in interface BoundedMultiInputendInput in class 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 in class 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 in class 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 in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void close()
throws IOException
OperatorChainThis method should never fail.
close in interface Closeableclose in interface AutoCloseableclose in class OperatorChain<OUT,OP extends StreamOperator<OUT>>IOExceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointAborted(long checkpointId)
throws Exception
notifyCheckpointAborted in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointSubsumed(long checkpointId)
throws Exception
notifyCheckpointSubsumed in class 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 in class OperatorChain<OUT,OP extends StreamOperator<OUT>>ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.