@Experimental
public interface Fetcher<T,Split>
SnapshotSplit
or stream split StreamSplit.| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the client and releases all resources.
|
boolean |
isFinished()
Return the current fetch task is finished or not.
|
Iterator<T> |
pollSplitRecords()
Fetched records from data source.
|
void |
submitTask(FetchTask<Split> fetchTask)
Add to task to fetch, this should call only when the reader is idle.
|
void submitTask(FetchTask<Split> fetchTask)
@Nullable Iterator<T> pollSplitRecords() throws InterruptedException
Iterator will be returned if the data of split is on pulling.boolean isFinished()
void close()
Copyright © 2022 10MG. All rights reserved.