KeySerdeFactory¶
KeySerdeFactory is an abstraction of factories of key serdes.
Contract¶
Creating Key Serde¶
Serde<GenericKey> create(
FormatInfo format,
PersistenceSchema schema,
KsqlConfig ksqlConfig,
Supplier<SchemaRegistryClient> schemaRegistryClientFactory,
String loggerNamePrefix,
ProcessingLogContext processingLogContext,
Optional<TrackedCallback> tracker)
Serde (Apache Kafka) of GenericRows
See GenericKeySerDe
Used when:
CreateSourceFactoryis requested to validateSerdesCanHandleSchemasKafkaConsumerFactoryis requested to create aKafkaConsumerMaterializationProviderBuilderFactoryis requested tobuildMaterializationProviderRuntimeBuildContextis requested to buildKeySerdeInsertsSubscriberis requested tocreateInsertsSubscriberInsertValuesExecutoris requested toserializeValue
Creating Windowed Serde¶
Serde<Windowed<GenericKey>> create(
FormatInfo format,
WindowInfo window,
PersistenceSchema schema,
KsqlConfig ksqlConfig,
Supplier<SchemaRegistryClient> schemaRegistryClientFactory,
String loggerNamePrefix,
ProcessingLogContext processingLogContext,
Optional<TrackedCallback> tracker)
Serde (Apache Kafka) of Windowed (Kafka Streams) of GenericRows
See GenericKeySerDe
Used when:
KafkaConsumerFactoryis requested to create aKafkaConsumerRuntimeBuildContextis requested to buildKeySerde