| Package | Description |
|---|---|
| org.apache.flink.connector.mongodb.source |
| Modifier and Type | Method and Description |
|---|---|
static <OUT> MongoSourceBuilder<OUT> |
MongoSource.builder()
Get a MongoSourceBuilder to builder a
MongoSource. |
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setCollection(String collection)
Sets the collection to sink of MongoDB.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setDatabase(String database)
Sets the database to sink of MongoDB.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setDeserializationSchema(MongoDeserializationSchema<OUT> deserializationSchema)
Sets the deserialization schema for MongoDB
BsonDocument. |
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setFetchSize(int fetchSize)
Sets the number of documents should be fetched per round-trip when reading.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setFilter(org.bson.conversions.Bson filter)
Sets the filter of documents to read.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setLimit(int limit)
Sets the limit of documents to read.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setNoCursorTimeout(boolean noCursorTimeout)
The MongoDB server normally times out idle cursors after an inactivity period (10 minutes) to
prevent excess memory use.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setPartitionSize(org.apache.flink.configuration.MemorySize partitionSize)
Sets the partition memory size of MongoDB split.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setPartitionStrategy(PartitionStrategy partitionStrategy)
Sets the partition strategy.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setProjectedFields(List<String> projectedFields)
Sets the projection fields of documents to read.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setProjectedFields(String... projectedFields)
Sets the projection fields of documents to read.
|
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setSamplesPerPartition(int samplesPerPartition)
Sets the number of samples to take per partition which is only used for the sample partition
strategy
PartitionStrategy.SAMPLE. |
MongoSourceBuilder<OUT> |
MongoSourceBuilder.setUri(String uri)
Sets the connection string of MongoDB.
|
Copyright © 2022–2025 The Apache Software Foundation. All rights reserved.