@Internal
public interface MongoSplitAssigner
MongoSourceSplit.| Modifier and Type | Method and Description |
|---|---|
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 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.
|
void open()
void close()
throws IOException
IOExceptionOptional<MongoSourceSplit> getNext()
MongoSourceSplitReader when MongoSourceEnumerator receives a split request, until there are noMoreSplits().void addSplitsBack(Collection<MongoSourceSplit> splits)
MongoSourceEnumState snapshotState(long checkpointId)
boolean noMoreSplits()
Copyright © 2022–2025 The Apache Software Foundation. All rights reserved.