AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

출력 형식 속성

MongoDB Kafka 소스 커넥터가 Kafka 주제에 게시하는 데이터 형식을 지정하려면 다음 구성 설정을 사용합니다.

범주별로 구성된 소스 커넥터 구성 설정 목록은 소스 커넥터 구성 속성 가이드를 참조하세요.

이름
설명

output.format.key

형식: string

설명:
소스 커넥터가 키 문서를 출력하는 데이터 형식을 지정합니다.

기본값: json
허용되는 값: bson, json, schema

output.format.value

유형: string

설명:
소스 커넥터가 값 문서를 출력하는 데이터 형식을 지정합니다.

커넥터는 출력 데이터 형식으로 Protobuf를 지원합니다. 이 형식은 schema 값을 지정하고 Kafka Connect Protobuf 변환기 를 설치 및 구성 하여 활성화할 수 있습니다.

기본값: json
허용되는 값: bson, json, schema

output.json.formatter

유형: string

설명:
커넥터가 데이터를 출력하는 데 사용할 JSON 포맷터의 클래스 이름입니다.

기본값:

com.mongodb.kafka.connect.source.json.formatter.DefaultJson

허용되는 값:
사용자 지정 JSON 포맷터 전체 클래스 이름 또는 다음 내장 포맷터 클래스 이름 중 하나입니다.

com.mongodb.kafka.connect.source.json.formatter.DefaultJson
com.mongodb.kafka.connect.source.json.formatter.ExtendedJson
com.mongodb.kafka.connect.source.json.formatter.SimplifiedJson

이러한 출력 형식에 대해 자세히 알아보려면 JSON 포맷터를 참조하세요.

output.schema.key

유형: string

설명:
SourceRecord의 키 문서에 대한 Avro 스키마 정의를 지정합니다.

Avro 스키마에 대해 자세히 알아보려면 Avro를 데이터 형식 가이드에서 참조하세요.

기본값:

{
"type": "record",
"name": "keySchema",
"fields" : [ { "name": "_id", "type": "string" } ]"
}

허용되는 값: 유효한 AVRO 스키마

output.schema.value

유형: string

설명:
SourceRecord의 값 문서에 대한 Avro 스키마 정의를 지정합니다.

Avro 스키마에 대해 자세히 알아보려면 Avro를 데이터 형식 가이드에서 참조하세요.

기본값:

{
"name": "ChangeStream",
"type": "record",
"fields": [
{ "name": "_id", "type": "string" },
{ "name": "operationType", "type": ["string", "null"] },
{ "name": "fullDocument", "type": ["string", "null"] },
{ "name": "ns",
"type": [{"name": "ns", "type": "record", "fields": [
{"name": "db", "type": "string"},
{"name": "coll", "type": ["string", "null"] } ]
}, "null" ] },
{ "name": "to",
"type": [{"name": "to", "type": "record", "fields": [
{"name": "db", "type": "string"},
{"name": "coll", "type": ["string", "null"] } ]
}, "null" ] },
{ "name": "documentKey", "type": ["string", "null"] },
{ "name": "updateDescription",
"type": [{"name": "updateDescription", "type": "record", "fields": [
{"name": "updatedFields", "type": ["string", "null"]},
{"name": "removedFields",
"type": [{"type": "array", "items": "string"}, "null"]
}] }, "null"] },
{ "name": "clusterTime", "type": ["string", "null"] },
{ "name": "txnNumber", "type": ["long", "null"]},
{ "name": "lsid", "type": [{"name": "lsid", "type": "record",
"fields": [ {"name": "id", "type": "string"},
{"name": "uid", "type": "string"}] }, "null"] }
]
}

허용되는 값: 유효한 JSON schema

output.schema.infer.value

유형: 불리언

설명:
커넥터가 소스 레코드의 값 문서에 대한 스키마를 추론해야 하는지 여부입니다. 커넥터는 각 문서를 개별적으로 처리하므로 커넥터는 많은 스키마를 생성할 수 있습니다.

중요한: 커넥터는 output.format.value 설정을 schema로 설정한 경우에만 이 설정을 읽습니다.

기본값: false
허용되는 값: true 또는 false

이 페이지 평가하기

이 페이지의 내용