Class PostgresScanFetchTask
- java.lang.Object
-
- org.apache.flink.cdc.connectors.base.source.reader.external.AbstractScanFetchTask
-
- org.apache.flink.cdc.connectors.postgres.source.fetch.PostgresScanFetchTask
-
- All Implemented Interfaces:
FetchTask
public class PostgresScanFetchTask extends AbstractScanFetchTask
AFetchTaskimplementation for Postgres to read snapshot split.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostgresScanFetchTask.PostgresSnapshotSplitReadTaskA SnapshotChangeEventSource implementation for Postgres to read snapshot split.-
Nested classes/interfaces inherited from interface org.apache.flink.cdc.connectors.base.source.reader.external.FetchTask
FetchTask.Context
-
-
Field Summary
-
Fields inherited from class org.apache.flink.cdc.connectors.base.source.reader.external.AbstractScanFetchTask
snapshotSplit, taskRunning
-
-
Constructor Summary
Constructors Constructor Description PostgresScanFetchTask(SnapshotSplit split)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(FetchTask.Context context)Execute current task.protected voidexecuteBackfillTask(FetchTask.Context context, StreamSplit backfillStreamSplit)protected voidexecuteDataSnapshot(FetchTask.Context context)-
Methods inherited from class org.apache.flink.cdc.connectors.base.source.reader.external.AbstractScanFetchTask
close, createBackfillStreamSplit, dispatchEndWaterMarkEvent, dispatchHighWaterMarkEvent, dispatchLowWaterMarkEvent, getSplit, isRunning, setSnapshotPhaseHooks
-
-
-
-
Constructor Detail
-
PostgresScanFetchTask
public PostgresScanFetchTask(SnapshotSplit split)
-
-
Method Detail
-
execute
public void execute(FetchTask.Context context) throws Exception
Description copied from interface:FetchTaskExecute current task.- Specified by:
executein interfaceFetchTask- Overrides:
executein classAbstractScanFetchTask- Throws:
Exception
-
executeDataSnapshot
protected void executeDataSnapshot(FetchTask.Context context) throws Exception
- Specified by:
executeDataSnapshotin classAbstractScanFetchTask- Throws:
Exception
-
executeBackfillTask
protected void executeBackfillTask(FetchTask.Context context, StreamSplit backfillStreamSplit) throws Exception
- Specified by:
executeBackfillTaskin classAbstractScanFetchTask- Throws:
Exception
-
-