@@ -44,29 +44,29 @@ class:
44
44
45
45
.. seealso:: :ref:`Strategy options and configuration <config-document-id-adder>`.
46
46
47
- * - BlacklistKeyProjector
48
- - | Full Path: ``com.mongodb.kafka.connect.sink.processor.BlacklistKeyProjector ``
47
+ * - BlocklistKeyProjector
48
+ - | Full Path: ``com.mongodb.kafka.connect.sink.processor.BlocklistKeyProjector ``
49
49
| Removes matching key fields from the sink record.
50
50
51
- .. seealso:: :ref:`Configuration <config-blacklist-whitelist >` and :ref:`Example <blacklist -example>`.
51
+ .. seealso:: :ref:`Configuration <config-blocklist-allowlist >` and :ref:`Example <blocklist -example>`.
52
52
53
- * - BlacklistValueProjector
54
- - | Full Path: ``com.mongodb.kafka.connect.sink.processor.BlacklistValueProjector ``
53
+ * - BlocklistValueProjector
54
+ - | Full Path: ``com.mongodb.kafka.connect.sink.processor.BlocklistValueProjector ``
55
55
| Removes matching value fields from the sink record.
56
56
57
- .. seealso:: :ref:`Configuration <config-blacklist-whitelist >` and :ref:`Example <blacklist -example>`.
57
+ .. seealso:: :ref:`Configuration <config-blocklist-allowlist >` and :ref:`Example <blocklist -example>`.
58
58
59
- * - WhitelistKeyProjector
60
- - | Full Path: ``com.mongodb.kafka.connect.sink.processor.WhitelistKeyProjector ``
59
+ * - AllowlistKeyProjector
60
+ - | Full Path: ``com.mongodb.kafka.connect.sink.processor.AllowlistKeyProjector ``
61
61
| Includes only matching key fields from the sink record.
62
62
63
- .. seealso:: :ref:`Configuration <config-blacklist-whitelist >` and :ref:`Example <whitelist -example>`.
63
+ .. seealso:: :ref:`Configuration <config-blocklist-allowlist >` and :ref:`Example <allowlist -example>`.
64
64
65
- * - WhitelistValueProjector
66
- - | Full Path: ``com.mongodb.kafka.connect.sink.processor.WhitelistValueProjector ``
65
+ * - AllowlistValueProjector
66
+ - | Full Path: ``com.mongodb.kafka.connect.sink.processor.AllowlistValueProjector ``
67
67
| matching value fields from the sink record.
68
68
69
- .. seealso:: :ref:`Configuration <config-blacklist-whitelist >` and :ref:`Example <whitelist -example>`.
69
+ .. seealso:: :ref:`Configuration <config-blocklist-allowlist >` and :ref:`Example <allowlist -example>`.
70
70
71
71
* - KafkaMetaAdder
72
72
- | Full Path: ``com.mongodb.kafka.connect.sink.processor.KafkaMetaAdder``
@@ -89,7 +89,7 @@ comma separated list of fully-qualified ``PostProcessor`` class names:
89
89
90
90
.. code-block:: properties
91
91
92
- post.processor.chain=com.mongodb.kafka.connect.sink.processor.KafkaMetaAdder,com.mongodb.kafka.connect.sink.processor.WhitelistValueProjector
92
+ post.processor.chain=com.mongodb.kafka.connect.sink.processor.KafkaMetaAdder,com.mongodb.kafka.connect.sink.processor.AllowlistValueProjector
93
93
94
94
.. note::
95
95
@@ -147,12 +147,12 @@ provided with this connector:
147
147
148
148
* - PartialKeyStrategy
149
149
- | Full Path: ``com.mongodb.kafka.connect.sink.processor.id.strategy.PartialKeyStrategy``
150
- | Uses a blacklist or whitelist projection of the key structure of the ``SinkDocument``.
150
+ | Uses a blocklist or allowlist projection of the key structure of the ``SinkDocument``.
151
151
| Defaults to a blank document if no key exists.
152
152
153
153
* - PartialValueStrategy
154
154
- | Full Path: ``com.mongodb.kafka.connect.sink.processor.id.strategy.PartialValueStrategy``
155
- | Uses a blacklist or whitelist projection of the value structure of the ``SinkDocument``.
155
+ | Uses a blocklist or allowlist projection of the value structure of the ``SinkDocument``.
156
156
| Defaults to a blank document if no value exists.
157
157
158
158
* - UuidStrategy
@@ -179,9 +179,9 @@ setting.
179
179
Other strategies permit exactly-once delivery if the fields that form
180
180
the document *_id* are guaranteed to be unique.
181
181
182
- .. _config-blacklist-whitelist :
182
+ .. _config-blocklist-allowlist :
183
183
184
- Blacklist / Whitelist Projector
184
+ Blocklist / Allowlist Projector
185
185
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186
186
187
187
This section provides example projection configurations to show how they
@@ -224,18 +224,18 @@ filter the following sample record:
224
224
to avoid repetition. Specify the one appropriate to your use case when
225
225
creating your configuration.
226
226
227
- .. _blacklist -example:
227
+ .. _blocklist -example:
228
228
229
- Blacklist Projection Example
229
+ Blocklist Projection Example
230
230
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
231
231
232
- In the following example sink configuration, we specify a blacklist
232
+ In the following example sink configuration, we specify a blocklist
233
233
projection and the specific fields to omit from the record:
234
234
235
235
.. code-block:: properties
236
236
237
- post.processor.chain=com.mongodb.kafka.connect.sink.processor.Blacklist [Key|Value]Projector
238
- [key|value].projection.type=blacklist
237
+ post.processor.chain=com.mongodb.kafka.connect.sink.processor.Blocklist [Key|Value]Projector
238
+ [key|value].projection.type=blocklist
239
239
[key|value].projection.list=age,address.city,lut.key2,data.v
240
240
241
241
.. note::
@@ -272,18 +272,18 @@ The record contains the following data after applying the projection:
272
272
}
273
273
}
274
274
275
- .. _whitelist -example:
275
+ .. _allowlist -example:
276
276
277
- Whitelist Projection Example
277
+ Allowlist Projection Example
278
278
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
279
279
280
- In the following example sink configuration, we specify a whitelist
280
+ In the following example sink configuration, we specify a allowlist
281
281
projection and the specific fields to include in the record:
282
282
283
283
.. code-block:: properties
284
284
285
- post.processor.chain=com.mongodb.kafka.connect.sink.processor.Whitelist [Key|Value]Projector
286
- [key|value].projection.type=whitelist
285
+ post.processor.chain=com.mongodb.kafka.connect.sink.processor.Allowlist [Key|Value]Projector
286
+ [key|value].projection.type=allowlist
287
287
[key|value].projection.list=age,address.city,lut.key2,data.v
288
288
289
289
.. note::
@@ -350,15 +350,15 @@ projection output from the following sample record:
350
350
}
351
351
}
352
352
353
- **Whitelist Wildcard Examples**
353
+ **Allowlist Wildcard Examples**
354
354
355
355
The ``*`` wildcard pattern in the example below matches all the keys named
356
356
``temp`` in the ``forecast`` array and all fields nested a single level
357
357
below it.
358
358
359
359
.. code-block:: properties
360
360
361
- [key|value].projection.type=whitelist
361
+ [key|value].projection.type=allowlist
362
362
[key|value].projection.list=city,forecast.temp.*
363
363
364
364
The record contains the following data after applying the projection:
@@ -386,7 +386,7 @@ all levels that contain the field ``scale``.
386
386
387
387
.. code-block:: properties
388
388
389
- [key|value].projection.type=whitelist
389
+ [key|value].projection.type=allowlist
390
390
[key|value].projection.list=**.scale
391
391
392
392
The record contains the following data after applying the projection:
@@ -401,15 +401,15 @@ The record contains the following data after applying the projection:
401
401
}
402
402
}
403
403
404
- **Blacklist Wildcard Examples**
404
+ **Blocklist Wildcard Examples**
405
405
406
406
The wildcard character can also be used to match all field names at
407
- specific levels as demonstrated in the following blacklist projection
407
+ specific levels as demonstrated in the following blocklist projection
408
408
configuration example:
409
409
410
410
.. code-block:: properties
411
411
412
- [key|value].projection.type=blacklist
412
+ [key|value].projection.type=blocklist
413
413
[key|value].projection.list=population,forecast.*.*
414
414
415
415
The record contains the following data after applying the projection:
@@ -433,7 +433,7 @@ specified.
433
433
434
434
.. code-block:: properties
435
435
436
- [key|value].projection.type=blacklist
436
+ [key|value].projection.type=blocklist
437
437
[key|value].projection.list=**.high
438
438
439
439
{
@@ -711,7 +711,7 @@ file:
711
711
712
712
document.id.strategy=com.mongodb.kafka.connect.sink.processor.id.strategy.PartialValueStrategy
713
713
value.projection.list=flight_no,airport_code
714
- value.projection.type=whitelist
714
+ value.projection.type=allowlist
715
715
writemodel.strategy=com.mongodb.kafka.connect.sink.writemodel.strategy.ReplaceOneBusinessKeyStrategy"
716
716
717
717
The sample data inserted into the collection contains the following:
@@ -752,7 +752,7 @@ values without changing the ``_id`` field.
752
752
The ``PartialValueStrategy`` id strategy uses the
753
753
``[key|value].projection.type`` and ``[key|value].projection.list``
754
754
settings to define which fields are used to form the ``_id`` field.
755
- Since the Blacklist and Whitelist post processors use the same
755
+ Since the Blocklist and Allowlist post processors use the same
756
756
projection settings, they cannot be specified separately. Use a `Single
757
757
Message Transform (SMT)
758
758
<https://docs.confluent.io/current/connect/transforms/index.html>`_
0 commit comments