Overview
構成プロパティを設定して、MongoDB Kafka Sink Connector が MongoDB にデータを書込む方法を指定できます。 次のセクションでは、この動作をカスタマイズするために設定できる構成プロパティについて説明します。
書込みモデル
Sink Connector が Sink レコードを受信したときにデータを書込む方法を指定するには、 writemodel.strategy構成プロパティを設定します。
You can set the value of writemodel.strategy to any of the fully qualified class names of the write model strategies described in the Strategies section of this page. You can specify a strategy by setting the following configuration:
writemodel.strategy=<a write model strategy>
書込みモデルの削除
Sink Connector がトゥームストーン イベントを受信したときにデータを書き込む方法を指定するには、 delete.writemodel.strategy構成プロパティを設定します。 トゥームストーン イベントとは、キーを含むが値は含まないレコードであり、削除されたレコードを意味します。
You can set the value of delete.writemodel.strategy to any of the fully qualified class names of the write model strategies described in the Strategies section of this page. You can specify a strategy by setting the following configuration:
delete.writemodel.strategy=<a write model strategy>
カテゴリ別に整理された Sink Connector 構成設定のリストについては、「 Sink Connector 構成プロパティ 」に関するガイドを参照してください。
Strategies
名前 | 説明 | |
|---|---|---|
DefaultWriteModelStratey | 説明: | |
InsertOneDefaultStrategy | 説明: | |
ReplaceOneDefaultStratey | 説明: | |
ReplaceOne BusinessKeyStratey | 説明: この戦略の使用方法を示す例えについては、書込みモデル戦略に関するガイド を参照してください。 | |
DeleteOneDefaultStratey | 説明: | |
DeleteOne BusinessKeyStratey | 説明: この戦略の使用方法を示す例えについては、書込みモデル戦略に関するガイド を参照してください。 | |
DeleteOneTombstoneBusinessKeyStrategy | 説明: | |
UpdateOneDefaultStrategy | 説明: | |
UpdateOneTimestampsStratey | 説明: この戦略の使用方法を示す例えについては、書込みモデル戦略に関するガイド を参照してください。 | |
UpdateOne BusinessKeyTimestampStratey | 説明: |