| Package | Description |
|---|---|
| org.apache.flink.connector.mongodb.sink |
| Modifier and Type | Method and Description |
|---|---|
static <IN> MongoSinkBuilder<IN> |
MongoSink.builder() |
MongoSinkBuilder<IN> |
MongoSinkBuilder.setBatchIntervalMs(long batchIntervalMs)
Sets the batch flush interval, in milliseconds.
|
MongoSinkBuilder<IN> |
MongoSinkBuilder.setBatchSize(int batchSize)
Sets the maximum number of actions to buffer for each batch request.
|
MongoSinkBuilder<IN> |
MongoSinkBuilder.setCollection(String collection)
Sets the collection to sink of MongoDB.
|
MongoSinkBuilder<IN> |
MongoSinkBuilder.setDatabase(String database)
Sets the database to sink of MongoDB.
|
MongoSinkBuilder<IN> |
MongoSinkBuilder.setDeliveryGuarantee(org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee)
Sets the wanted
DeliveryGuarantee. |
MongoSinkBuilder<IN> |
MongoSinkBuilder.setMaxRetries(int maxRetries)
Sets the max retry times if writing records failed.
|
MongoSinkBuilder<IN> |
MongoSinkBuilder.setSerializationSchema(MongoSerializationSchema<IN> serializationSchema)
Sets the serialization schema which is invoked on every record to convert it to MongoDB bulk
request.
|
MongoSinkBuilder<IN> |
MongoSinkBuilder.setUri(String uri)
Sets the connection string of MongoDB.
|
Copyright © 2022–2025 The Apache Software Foundation. All rights reserved.