Skip to content

Commit af9fcd5

Browse files
committed
Docs: Fix sink configuration namespace examples
1 parent 800d596 commit af9fcd5

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/sink.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ The following configuration fragments show how to apply different settings for t
6464
# Specific processing settings for 'topicA'
6565

6666
topic.override.topicA.collection=collectionA
67-
topic.override.topicA.document.id.strategy=com.mongodb.kafka.connect.mongodb.processor.id.strategy.UuidStrategy
68-
topic.override.topicA.post.processor.chain=com.mongodb.kafka.connect.mongodb.processor.DocumentIdAdder,com.mongodb.kafka.connect.mongodb.processor.BlacklistValueProjector
67+
topic.override.topicA.document.id.strategy=com.mongodb.kafka.connect.sink.processor.id.strategy.UuidStrategy
68+
topic.override.topicA.post.processor.chain=com.mongodb.kafka.connect.sink.processor.DocumentIdAdder,com.mongodb.kafka.connect.sink.processor.BlacklistValueProjector
6969
topic.override.topicA.value.projection.type=blacklist
7070
topic.override.topicA.value.projection.list=k2,k4
7171
topic.override.topicA.max.batch.size=100
@@ -84,11 +84,11 @@ Then there are also individual settings for topic 'topicC':
8484
# Specific processing settings for 'topicC'
8585

8686
topic.override.topicA.collection=collectionC
87-
topic.override.topicC.document.id.strategy=com.mongodb.kafka.connect.mongodb.processor.id.strategy.ProvidedInValueStrategy
88-
topic.override.topicC.post.processor.chain=com.mongodb.kafka.connect.mongodb.processor.WhitelistValueProjector
87+
topic.override.topicC.document.id.strategy=com.mongodb.kafka.connect.sink.processor.id.strategy.ProvidedInValueStrategy
88+
topic.override.topicC.post.processor.chain=com.mongodb.kafka.connect.sink.processor.WhitelistValueProjector
8989
topic.override.topicC.value.projection.type=whitelist
9090
topic.override.topicC.value.projection.list=k3,k5
91-
topic.override.topicC.writemodel.strategy=com.mongodb.kafka.connect.mongodb.writemodel.strategy.UpdateOneTimestampsStrategy
91+
topic.override.topicC.writemodel.strategy=com.mongodb.kafka.connect.sink.writemodel.strategy.UpdateOneTimestampsStrategy
9292

9393
```
9494

@@ -279,7 +279,7 @@ before they are written to the sink. Just specify a comma separated list of full
279279
implementations, either existing ones or new/customized ones, like so:
280280

281281
```properties
282-
post.processor.chain=com.mongodb.kafka.connect.mongodb.processor.field.renaming.RenameByMapping
282+
post.processor.chain=com.mongodb.kafka.connect.sink.processor.field.renaming.RenameByMapping
283283
```
284284

285285
The `DocumentIdAdder` is automatically added at the very first position in the chain in case it is not present. Other than that, the chain
@@ -306,7 +306,7 @@ _Note: the latter two of which can be configured to use the blacklist/whitelist
306306
The strategy is set by means of the following property:
307307

308308
```properties
309-
mongodb.document.id.strategy=com.mongodb.kafka.connect.mongodb.processor.id.strategy.BsonOidStrategy
309+
document.id.strategy=com.mongodb.kafka.connect.sink.processor.id.strategy.BsonOidStrategy
310310
```
311311

312312
There is a configuration property which allows to customize the applied id generation strategy. Thus, if none of the available strategies
@@ -485,13 +485,13 @@ However, there are other use cases which need different approaches and the **cus
485485
can support these. The configuration entry (_mongodb.writemodel.strategy_) allows for such customizations. Currently, the following
486486
strategies are implemented:
487487

488-
- **default behaviour** com.mongodb.kafka.connect.mongodb.writemodel.strategy.**ReplaceOneDefaultStrategy**
488+
- **default behaviour** com.mongodb.kafka.connect.sink.writemodel.strategy.**ReplaceOneDefaultStrategy**
489489
- **business key** (see [use case 1](https://github.com/mongodb/mongo-kafka#use-case-1-employing-business-keys) below)
490-
com.mongodb.kafka.connect.mongodb.writemodel.strategy.**ReplaceOneBusinessKeyStrategy**
491-
- **delete on null values** com.mongodb.kafka.connect.mongodb.writemodel.strategy.**DeleteOneDefaultStrategy** implicitly used when
490+
com.mongodb.kafka.connect.sink.writemodel.strategy.**ReplaceOneBusinessKeyStrategy**
491+
- **delete on null values** com.mongodb.kafka.connect.sink.writemodel.strategy.**DeleteOneDefaultStrategy** implicitly used when
492492
config option _mongodb.delete.on.null.values=true_ for [convention-based deletion](https://github.com/mongodb/mongo-kafka#convention-based-deletion-on-null-values)
493493
- **add inserted/modified timestamps** (see [use case 2](https://github.com/mongodb/mongo-kafka#use-case-2-add-inserted-and-modified-timestamps) below)
494-
com.mongodb.kafka.connect.mongodb.writemodel.strategy.**UpdateOneTimestampsStrategy**
494+
com.mongodb.kafka.connect.sink.writemodel.strategy.**UpdateOneTimestampsStrategy**
495495

496496
_Note:_ Future versions will allow to make use of arbitrary, individual strategies that can be registered and easily used as
497497
_mongodb.writemodel.strategy_ configuration setting.
@@ -528,10 +528,10 @@ Together with the sink connector config:
528528
"name": "mongo-sink",
529529
"config": {
530530
...
531-
"mongodb.document.id.strategy": "com.mongodb.kafka.connect.processor.id.strategy.PartialValueStrategy",
532-
"mongodb.key.projection.list": "fieldA,fieldB",
533-
"mongodb.key.projection.type": "whitelist",
534-
"mongodb.writemodel.strategy": "com.mongodb.kafka.connect.writemodel.strategy.ReplaceOneBusinessKeyStrategy"
531+
"document.id.strategy": "com.mongodb.kafka.connect.sink.processor.id.strategy.PartialValueStrategy",
532+
"value.projection.list": "fieldA,fieldB",
533+
"value.projection.type": "whitelist",
534+
"writemodel.strategy": "com.mongodb.kafka.connect.sink.writemodel.strategy.ReplaceOneBusinessKeyStrategy"
535535
}
536536
}
537537
```
@@ -577,8 +577,8 @@ Together with the sink connector config:
577577
"name": "mdb-sink",
578578
"config": {
579579
...
580-
"mongodb.document.id.strategy": "com.mongodb.kafka.connect.processor.id.strategy.ProvidedInValueStrategy",
581-
"mongodb.writemodel.strategy": "com.mongodb.kafka.connect.writemodel.strategy.UpdateOneTimestampsStrategy"
580+
"document.id.strategy": "com.mongodb.kafka.connect.sink.processor.id.strategy.ProvidedInValueStrategy",
581+
"writemodel.strategy": "com.mongodb.kafka.connect.sink.writemodel.strategy.UpdateOneTimestampsStrategy"
582582
}
583583
}
584584
```
@@ -656,10 +656,10 @@ Debezium CDC MongoDB events. This config can be posted to the
656656
"key.converter.schema.registry.url":"http://localhost:8081",
657657
"value.converter":"io.confluent.connect.avro.AvroConverter",
658658
"value.converter.schema.registry.url":"http://localhost:8081",
659-
"connector.class": "com.mongodb.kafka.connect.MongoSinkConnector",
659+
"connector.class": "com.mongodb.kafka.connect.sink.MongoSinkConnector",
660660
"topics": "myreplset.kafkaconnect.mongosrc",
661661
"connection.uri": "mongodb://mongodb:27017/kafkaconnect?w=1&journal=true",
662-
"change.data.capture.handler": "com.mongodb.kafka.connect.cdc.debezium.mongodb.MongoDbHandler",
662+
"change.data.capture.handler": "com.mongodb.kafka.connect.sink.cdc.debezium.mongodb.MongoDbHandler",
663663
"collection": "mongosink"
664664
}
665665
}

0 commit comments

Comments
 (0)