@Internal public class MongoScanSourceSplitState extends Object implements MongoSourceSplitState
MongoScanSourceSplit.| Constructor and Description |
|---|
MongoScanSourceSplitState(MongoScanSourceSplit scanSplit) |
| Modifier and Type | Method and Description |
|---|---|
MongoScanSourceSplit |
toMongoSourceSplit()
Use the current split state to create a new
MongoSourceSplit. |
void |
updateOffset(org.bson.BsonDocument record)
Update the offset read by the current split for failure recovery.
|
public MongoScanSourceSplitState(MongoScanSourceSplit scanSplit)
public MongoScanSourceSplit toMongoSourceSplit()
MongoSourceSplitStateMongoSourceSplit.toMongoSourceSplit in interface MongoSourceSplitStatepublic void updateOffset(org.bson.BsonDocument record)
MongoSourceSplitStateupdateOffset in interface MongoSourceSplitStaterecord - The latest record that was read.Copyright © 2022–2025 The Apache Software Foundation. All rights reserved.