Class Db2StreamFetchTask
- java.lang.Object
-
- org.apache.flink.cdc.connectors.db2.source.fetch.Db2StreamFetchTask
-
- All Implemented Interfaces:
FetchTask<SourceSplitBase>
public class Db2StreamFetchTask extends Object implements FetchTask<SourceSplitBase>
The task to work for fetching data of Db2 table stream split .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDb2StreamFetchTask.StreamSplitReadTaskA wrapped task to read all redo logs for table and also supports read bounded (from lowWatermark to highWatermark) redo logs.-
Nested classes/interfaces inherited from interface org.apache.flink.cdc.connectors.base.source.reader.external.FetchTask
FetchTask.Context
-
-
Constructor Summary
Constructors Constructor Description Db2StreamFetchTask(StreamSplit split)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close current task.voidexecute(FetchTask.Context context)Execute current task.StreamSplitgetSplit()Returns the split that the task used.booleanisRunning()Returns current task is running or not.
-
-
-
Constructor Detail
-
Db2StreamFetchTask
public Db2StreamFetchTask(StreamSplit split)
-
-
Method Detail
-
execute
public void execute(FetchTask.Context context) throws Exception
Description copied from interface:FetchTaskExecute current task.- Specified by:
executein interfaceFetchTask<SourceSplitBase>- Throws:
Exception
-
isRunning
public boolean isRunning()
Description copied from interface:FetchTaskReturns current task is running or not.- Specified by:
isRunningin interfaceFetchTask<SourceSplitBase>
-
getSplit
public StreamSplit getSplit()
Description copied from interface:FetchTaskReturns the split that the task used.- Specified by:
getSplitin interfaceFetchTask<SourceSplitBase>
-
close
public void close()
Description copied from interface:FetchTaskClose current task. *- Specified by:
closein interfaceFetchTask<SourceSplitBase>
-
-