public class StreamReadOperator extends AbstractStreamOperatorAdapter<org.apache.flink.table.data.RowData> implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<MergeOnReadInputSplit,org.apache.flink.table.data.RowData>
splits received from the preceding StreamReadMonitoringFunction. Contrary to the StreamReadMonitoringFunction which has a parallelism of 1,
this operator can have multiple parallelism.
As soon as an input split MergeOnReadInputSplit is received, it is put into a queue,
the MailboxExecutor read the actual data of the split.
This architecture allows the separation of split reading from processing the checkpoint barriers,
thus removing any potential back-pressure.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static org.apache.flink.streaming.api.operators.OneInputStreamOperatorFactory<MergeOnReadInputSplit,org.apache.flink.table.data.RowData> |
factory(MergeOnReadInputFormat format) |
void |
finish() |
void |
initializeState(org.apache.flink.runtime.state.StateInitializationContext context) |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<MergeOnReadInputSplit> element) |
void |
processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) |
void |
snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context) |
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, open, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementgetMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeypublic void initializeState(org.apache.flink.runtime.state.StateInitializationContext context)
throws Exception
initializeState in interface org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorinitializeState in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.table.data.RowData>Exceptionpublic void snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context)
throws Exception
snapshotState in interface org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorsnapshotState in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.table.data.RowData>Exceptionpublic void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<MergeOnReadInputSplit> element)
processElement in interface org.apache.flink.streaming.api.operators.Input<MergeOnReadInputSplit>public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
processWatermark in interface org.apache.flink.streaming.api.operators.Input<MergeOnReadInputSplit>processWatermark in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.table.data.RowData>public void close()
throws Exception
close in interface org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>close in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.table.data.RowData>Exceptionpublic void finish()
throws Exception
finish in interface org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>finish in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.table.data.RowData>Exceptionpublic static org.apache.flink.streaming.api.operators.OneInputStreamOperatorFactory<MergeOnReadInputSplit,org.apache.flink.table.data.RowData> factory(MergeOnReadInputFormat format)
Copyright © 2023 The Apache Software Foundation. All rights reserved.