当我使用 kafka 流加入 Windows 时,自动创建一个 avro 模式
像这样 “* KSTREAM-JOINTHIS-0000000125-store-changelog-value”**
我想知道,为什么这可以创建 avro 模式?
有我的代码:
Serde<FactCallProviderMessage> specificAvroSerdeForCallProviderMessage = ProcessStreamUtil.getAndRegisterSerde(isKeySerde);
KStream<String, FactCallProviderMessage> callProviderMessageKStream = builder.stream(
callProviderMessageTopic /* input topic */,
Consumed.with(Serdes.String(), specificAvroSerdeForCallProviderMessage));
public static <T extends SpecificRecord> Serde<T> getAndRegisterSerde(boolean isKeySerde) {
Serde<T> specificAvroSerde = new SpecificAvroSerde<T>();
specificAvroSerde.configure(Collections.singletonMap(
AbstractKafkaAvroSerDeConfig.SCHEMA_REGISTRY_URL_CONFIG,
MyConfig.getSchemaRegistryUrl()),
isKeySerde);
return specificAvroSerde;
}