개요
구성 속성을 설정하여 MongoDB Kafka 싱크 connector 가 MongoDB 에 데이터를 쓰는 방법을 지정할 수 있습니다. 다음 섹션에서는 이 동작을 사용자 지정하기 위해 설정할 수 있는 구성 속성에 대해 설명합니다.
WriteModel
writemodel.strategy 구성 속성을 설정하여 싱크 connector 가 싱크 기록을 수신할 때 데이터를 쓰는 방법을 지정합니다.
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>
쓰기 모델 삭제
싱크 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>
카테고리별로 정리된 싱크 connector 구성 설정 목록은 싱크 Connector 구성 속성가이드 를 참조하세요.
Strategies
이름 | 설명 | |
|---|---|---|
DefaultWriteModelStrategy | 설명: | |
InsertOneDefaultStrategy | 설명: | |
ReplaceOneDefaultStrategy | 설명: | |
하나의 비즈니스 키 교체 전략 | 설명: 이 전략을 사용하는 방법을 보여주는 예를 보려면 쓰기 모델 전략 가이드를 참조하세요. | |
DeleteOneDefaultStrategy | 설명: | |
하나의 비즈니스 키 삭제 전략 | 설명: 이 전략을 사용하는 방법을 보여주는 예를 보려면 쓰기 모델 전략 가이드를 참조하세요. | |
DeleteOneTombstoneBusinessKeyStrategy | 설명: | |
UpdateOneDefaultStrategy | 설명: | |
하나의 타임스탬프 업데이트 전략 | 설명: 이 전략을 사용하는 방법을 보여주는 예를 보려면 쓰기 모델 전략 가이드를 참조하세요. | |
UpdateOneBusinessKeyTimestampStrategy | 설명: |