public abstract class AbstractKafkaJsonSchemaDeserializer<T> extends AbstractKafkaSchemaSerDe
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchema| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
allowedTypePackages |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected Class<T> |
type |
protected String |
typeProperty |
protected boolean |
validate |
config, configOriginals, contextNameStrategy, DEFAULT_CACHE_CAPACITY, enableRuleServiceLoader, idSize, isKey, keySubjectNameStrategy, latestVersions, latestWithMetadata, MAGIC_BYTE, metadata, ruleActions, ruleExecutors, schemaRegistry, ticker, useLatestVersion, useSchemaReflection, valueSubjectNameStrategy| Constructor and Description |
|---|
AbstractKafkaJsonSchemaDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(KafkaJsonSchemaDeserializerConfig config,
Class<T> type)
Sets properties for this deserializer without overriding the schema registry client itself.
|
protected Object |
deserialize(boolean includeSchemaAndVersion,
String topic,
Boolean isKey,
byte[] payload) |
protected Object |
deserialize(boolean includeSchemaAndVersion,
String topic,
Boolean isKey,
org.apache.kafka.common.header.Headers headers,
byte[] payload) |
protected T |
deserialize(byte[] payload)
Deserializes the payload without including schema information for primitive types, maps, and
arrays.
|
protected KafkaJsonSchemaDeserializerConfig |
deserializerConfig(Map<String,?> props) |
protected KafkaJsonSchemaDeserializerConfig |
deserializerConfig(Properties props) |
protected JsonSchemaAndValue |
deserializeWithSchemaAndVersion(String topic,
boolean isKey,
org.apache.kafka.common.header.Headers headers,
byte[] payload) |
com.fasterxml.jackson.databind.ObjectMapper |
objectMapper() |
clearKey, close, configureClientProperties, executeMigrations, executeRules, executeRules, getById, getBySubjectAndId, getByteBuffer, getContextName, getContextName, getLatestWithMetadata, getMigrations, getOldSubjectName, getRuleActions, getRuleExecutors, getSchemaById, getSchemaBySubjectAndId, getSchemaRegistryClient, getSubjectName, isDeprecatedSubjectNameStrategy, isKey, key, latestVersionsCache, latestWithMetadataCache, lookupLatestVersion, lookupLatestVersion, lookupSchemaBySubjectAndId, postOp, register, register, register, registerWithResponse, setKey, strategyUsesSchema, ticker, toKafkaExceptionprotected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected String typeProperty
protected boolean validate
protected void configure(KafkaJsonSchemaDeserializerConfig config, Class<T> type)
protected KafkaJsonSchemaDeserializerConfig deserializerConfig(Map<String,?> props)
protected KafkaJsonSchemaDeserializerConfig deserializerConfig(Properties props)
public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
protected T deserialize(byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
This behavior is the norm for Decoders/Deserializers.
payload - serialized dataorg.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected Object deserialize(boolean includeSchemaAndVersion, String topic, Boolean isKey, byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected Object deserialize(boolean includeSchemaAndVersion, String topic, Boolean isKey, org.apache.kafka.common.header.Headers headers, byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected JsonSchemaAndValue deserializeWithSchemaAndVersion(String topic, boolean isKey, org.apache.kafka.common.header.Headers headers, byte[] payload) throws org.apache.kafka.common.errors.SerializationException
org.apache.kafka.common.errors.SerializationExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.