You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/sink-connector/configuration-properties/write-strategies.txt
+33-8Lines changed: 33 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,9 @@ Strategies
44
44
* - | **DefaultWriteModelStrategy**
45
45
|
46
46
- | **Description:**
47
-
| This strategy uses the ``ReplaceOneDefaultStrategy`` by default, and the ``InsertOneDefaultStrategy`` if you set the ``timeseries.timefield`` option.
47
+
| This strategy uses the ``ReplaceOneDefaultStrategy`` by
48
+
default, and the ``InsertOneDefaultStrategy`` if you set the
49
+
``timeseries.timefield`` option.
48
50
|
49
51
| This is the default value for the ``writemodel.strategy`` configuration setting.
50
52
@@ -61,7 +63,9 @@ Strategies
61
63
* - | **ReplaceOneDefaultStrategy**
62
64
|
63
65
- | **Description:**
64
-
| Replaces at most one document in MongoDB that matches a sink record by the ``_id`` field. If no documents match, insert the sink record as a new document.
66
+
| Replaces at most one document in MongoDB that matches a sink
67
+
record by the ``_id`` field. If no documents match, the
68
+
connector inserts the sink record as a new document.
65
69
| Apply the following configuration to your sink connector to specify this setting:
66
70
67
71
.. code-block:: properties
@@ -71,19 +75,24 @@ Strategies
71
75
* - | **ReplaceOneBusinessKeyStrategy**
72
76
|
73
77
- | **Description:**
74
-
| Replaces at most one document that matches a sink record by a specified business key. If no documents match, insert the sink record as a new document.
78
+
| Replaces at most one document that matches a sink record by a
79
+
specified business key. If no documents match, the
80
+
connector inserts the sink record as a new document.
75
81
| Apply the following configuration to your sink connector to specify this setting:
| To see an example showing how to use this strategy, see our :ref:`guide on write model strategies <kafka-sink-write-model-replace-example>`.
87
+
| To see an example showing how to use this strategy, see our
88
+
:ref:`guide on write model strategies <kafka-sink-write-model-replace-example>`.
82
89
83
90
* - | **DeleteOneDefaultStrategy**
84
91
|
85
92
- | **Description:**
86
-
| Deletes at most one document that matches your sink connector's key structure by the ``_id`` field only when the document contains a null value structure.
93
+
| Deletes at most one document that matches your sink connector's
94
+
key structure by the ``_id`` field only when the document
95
+
contains a null value structure.
87
96
| This is implicitly specified when you set ``mongodb.delete.on.null.values=true``.
88
97
| You can set this explicitly with the following configuration:
0 commit comments