public class JdbcSourceScanFetcher extends Object implements Fetcher<org.apache.kafka.connect.source.SourceRecord,SourceSplitBase>
SnapshotSplit.| 限定符和类型 | 字段和说明 |
|---|---|
AtomicBoolean |
hasNextElement |
AtomicBoolean |
reachEnd |
| 构造器和说明 |
|---|
JdbcSourceScanFetcher(JdbcSourceFetchTaskContext taskContext,
int subtaskId) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the client and releases all resources.
|
boolean |
isFinished()
Return the current fetch task is finished or not.
|
Iterator<org.apache.kafka.connect.source.SourceRecord> |
pollSplitRecords()
Fetched records from data source.
|
void |
submitTask(FetchTask<SourceSplitBase> fetchTask)
Add to task to fetch, this should call only when the reader is idle.
|
public AtomicBoolean hasNextElement
public AtomicBoolean reachEnd
public JdbcSourceScanFetcher(JdbcSourceFetchTaskContext taskContext, int subtaskId)
public void submitTask(FetchTask<SourceSplitBase> fetchTask)
FetchersubmitTask 在接口中 Fetcher<org.apache.kafka.connect.source.SourceRecord,SourceSplitBase>public boolean isFinished()
FetcherisFinished 在接口中 Fetcher<org.apache.kafka.connect.source.SourceRecord,SourceSplitBase>@Nullable public Iterator<org.apache.kafka.connect.source.SourceRecord> pollSplitRecords() throws InterruptedException
FetcherIterator will be returned if the data of split is on pulling.pollSplitRecords 在接口中 Fetcher<org.apache.kafka.connect.source.SourceRecord,SourceSplitBase>InterruptedExceptionpublic void close()
Fetcherclose 在接口中 Fetcher<org.apache.kafka.connect.source.SourceRecord,SourceSplitBase>Copyright © 2022 10MG. All rights reserved.