@Internal public class MongoScanSplitAssigner extends Object implements MongoSplitAssigner
MongoScanSourceSplit.| 构造器和说明 |
|---|
MongoScanSplitAssigner(MongoConnectionOptions connectionOptions,
MongoReadOptions readOptions,
MongoSourceEnumState sourceEnumState) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSplitsBack(Collection<MongoSourceSplit> splits)
Adds a set of splits to this assigner.
|
void |
close()
Called to close the assigner, in case it holds on to any resources, like threads or network
connections.
|
Optional<MongoSourceSplit> |
getNext()
Gets the next split to assign to
MongoSourceSplitReader when MongoSourceEnumerator receives a split request, until there are MongoSplitAssigner.noMoreSplits(). |
boolean |
noMoreSplits()
Return whether there are no more splits.
|
void |
open()
Called to open the assigner to acquire any resources, like threads or network connections.
|
MongoSourceEnumState |
snapshotState(long checkpointId)
Snapshot the current assign state into checkpoint.
|
public MongoScanSplitAssigner(MongoConnectionOptions connectionOptions, MongoReadOptions readOptions, MongoSourceEnumState sourceEnumState)
public void open()
MongoSplitAssigneropen 在接口中 MongoSplitAssignerpublic Optional<MongoSourceSplit> getNext()
MongoSplitAssignerMongoSourceSplitReader when MongoSourceEnumerator receives a split request, until there are MongoSplitAssigner.noMoreSplits().getNext 在接口中 MongoSplitAssignerpublic void addSplitsBack(Collection<MongoSourceSplit> splits)
MongoSplitAssigneraddSplitsBack 在接口中 MongoSplitAssignerpublic MongoSourceEnumState snapshotState(long checkpointId)
MongoSplitAssignersnapshotState 在接口中 MongoSplitAssignerpublic boolean noMoreSplits()
MongoSplitAssignernoMoreSplits 在接口中 MongoSplitAssignerpublic void close()
throws IOException
MongoSplitAssignerclose 在接口中 MongoSplitAssignerIOExceptionCopyright © 2022–2024 The Apache Software Foundation. All rights reserved.