public abstract class AbstractKafkaAvroDeserializer extends AbstractKafkaSchemaSerDe
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchema| Modifier and Type | Field and Description |
|---|---|
protected boolean |
avroReflectionAllowNull |
protected boolean |
avroUseLogicalTypeConverters |
protected org.apache.avro.Schema |
specificAvroReaderSchema |
protected boolean |
useSpecificAvroReader |
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 |
|---|
AbstractKafkaAvroDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(KafkaAvroDeserializerConfig config) |
protected void |
configure(KafkaAvroDeserializerConfig config,
Class<?> type)
Sets properties for this deserializer without overriding the schema registry client itself.
|
protected Object |
deserialize(byte[] payload)
Deserializes the payload without including schema information for primitive types, maps, and
arrays.
|
protected Object |
deserialize(byte[] payload,
org.apache.avro.Schema readerSchema)
Just like single-parameter version but accepts an Avro schema to use for reading
|
protected Object |
deserialize(String topic,
Boolean isKey,
byte[] payload,
org.apache.avro.Schema readerSchema) |
protected Object |
deserialize(String topic,
Boolean isKey,
org.apache.kafka.common.header.Headers headers,
byte[] payload,
org.apache.avro.Schema readerSchema) |
protected KafkaAvroDeserializerConfig |
deserializerConfig(Map<String,?> props) |
protected KafkaAvroDeserializerConfig |
deserializerConfig(Properties props) |
protected GenericContainerWithVersion |
deserializeWithSchemaAndVersion(String topic,
boolean isKey,
byte[] payload)
Deserializes the payload and includes schema information, with version information from the
schema registry embedded in the schema.
|
protected GenericContainerWithVersion |
deserializeWithSchemaAndVersion(String topic,
boolean isKey,
org.apache.kafka.common.header.Headers headers,
byte[] payload) |
protected org.apache.avro.io.DatumReader<?> |
getDatumReader(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema) |
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 boolean useSpecificAvroReader
protected org.apache.avro.Schema specificAvroReaderSchema
protected boolean avroReflectionAllowNull
protected boolean avroUseLogicalTypeConverters
protected void configure(KafkaAvroDeserializerConfig config)
protected void configure(KafkaAvroDeserializerConfig config, Class<?> type)
protected KafkaAvroDeserializerConfig deserializerConfig(Map<String,?> props)
protected KafkaAvroDeserializerConfig deserializerConfig(Properties props)
protected Object deserialize(byte[] payload) throws org.apache.kafka.common.errors.SerializationException
This behavior is the norm for Decoders/Deserializers.
payload - serialized dataorg.apache.kafka.common.errors.SerializationExceptionprotected Object deserialize(byte[] payload, org.apache.avro.Schema readerSchema) throws org.apache.kafka.common.errors.SerializationException
payload - serialized datareaderSchema - schema to use for Avro read (optional, enables Avro projection)org.apache.kafka.common.errors.SerializationExceptionprotected Object deserialize(String topic, Boolean isKey, byte[] payload, org.apache.avro.Schema readerSchema) throws org.apache.kafka.common.errors.SerializationException
org.apache.kafka.common.errors.SerializationExceptionprotected Object deserialize(String topic, Boolean isKey, org.apache.kafka.common.header.Headers headers, byte[] payload, org.apache.avro.Schema readerSchema) throws org.apache.kafka.common.errors.SerializationException
org.apache.kafka.common.errors.SerializationExceptionprotected GenericContainerWithVersion deserializeWithSchemaAndVersion(String topic, boolean isKey, byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
payload - the serialized dataNonRecordContainer,
GenericRecord, or SpecificRecordorg.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected GenericContainerWithVersion 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.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected org.apache.avro.io.DatumReader<?> getDatumReader(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema)
throws ExecutionException
ExecutionExceptionCopyright © 2025 Confluent, Inc.. All rights reserved.