public class MonitorSource extends AbstractNonCoordinatedSource<Split>
splits
corresponding to the incremental files
The splits to be read are forwarded to the downstream ReadOperator
which can have
parallelism greater than one.
Currently, there are two features that rely on this monitor:
Constructor and Description |
---|
MonitorSource(ReadBuilder readBuilder,
long monitorInterval,
boolean emitSnapshotWatermark) |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> |
buildSource(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env,
String name,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> typeInfo,
ReadBuilder readBuilder,
long monitorInterval,
boolean emitSnapshotWatermark,
boolean shuffleBucketWithPartition,
BucketMode bucketMode,
NestedProjectedRowData nestedProjectedRowData) |
org.apache.flink.api.connector.source.SourceReader<Split,SimpleSourceSplit> |
createReader(org.apache.flink.api.connector.source.SourceReaderContext sourceReaderContext) |
org.apache.flink.api.connector.source.Boundedness |
getBoundedness() |
createEnumerator, getEnumeratorCheckpointSerializer, getSplitSerializer, restoreEnumerator
public MonitorSource(ReadBuilder readBuilder, long monitorInterval, boolean emitSnapshotWatermark)
public org.apache.flink.api.connector.source.Boundedness getBoundedness()
public org.apache.flink.api.connector.source.SourceReader<Split,SimpleSourceSplit> createReader(org.apache.flink.api.connector.source.SourceReaderContext sourceReaderContext) throws Exception
Exception
public static org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> buildSource(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env, String name, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> typeInfo, ReadBuilder readBuilder, long monitorInterval, boolean emitSnapshotWatermark, boolean shuffleBucketWithPartition, BucketMode bucketMode, NestedProjectedRowData nestedProjectedRowData)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.