@@ -219,25 +219,25 @@ public class MongoSourceConfig extends AbstractConfig {
219
219
+ " suffixed with the value of `sep` if and only if the value of `coll` is not empty."
220
220
+ "\n - `sep_coll_sep` The value of the `coll` variable"
221
221
+ " prefixed and suffixed with the value of `sep` if and only if the value of `coll` is not empty."
222
- + "\n To be expanded, a variable must be enclosed between curly brackets '{' and '}', for example '{db}'."
222
+ + "\n To be expanded, a variable must be enclosed between curly brackets '{' and '}', for example '{db}'."
223
223
+ " The characters '{' and '}' are not allowed to be used in the topic name template for any other purpose."
224
224
+ " Note that variable names are case-sensitive."
225
- + "\n Be careful when creating a namespace pattern with characters that need escaping according to the JSON syntax."
225
+ + "\n Be careful when creating a namespace pattern with characters that need escaping according to the JSON syntax."
226
226
+ " For example, if you want to match full stop '.', the regex syntax requires escaping it as '\\ .'."
227
227
+ " However, reverse solidus '\\ ' itself must be escaped as '\\ \\ ' according to the JSON syntax."
228
228
+ " Consequently, to match '.' you need to write '\\ \\ .'."
229
229
+ "\n - Wildcard. The namespace pattern is asterisk '*' and matches any namespace."
230
230
+ " The topic name template is interpreted as the topic name."
231
- + "\n The matching order:"
231
+ + "\n The matching order:"
232
232
+ "\n 1. Simple pairs with a collection name in the namespace pattern."
233
233
+ "\n 2. Simple pairs without a collection name in the namespace pattern."
234
234
+ "\n 3. Regex pairs in order."
235
235
+ "\n 4. The wildcard pair."
236
- + "\n Matching stops as soon as the first match is found. If no matches are found,"
236
+ + "\n Matching stops as soon as the first match is found. If no matches are found,"
237
237
+ " the topic name is computed solely based on the namespace. The namespace may either have a collection name, or not:"
238
- + "\n - If there is a collection name, then the topic name is computed"
238
+ + "\n - If there is a collection name, then the topic name is computed"
239
239
+ " by concatenating the database name and the collection name, separated by `topic.separator`."
240
- + "\n - If there is no collection name, then the database name is used as the topic name."
240
+ + "\n - If there is no collection name, then the database name is used as the topic name."
241
241
+ "\n Examples (`topic.separator` is assumed to be '-'):"
242
242
+ "\n 1. '{\" myDb\" : \" topicTwo\" , \" myDb.myColl\" : \" topicOne\" }'"
243
243
+ " The 'myDb.myColl' namespace is mapped to the 'topicOne' topic name."
0 commit comments