public abstract class AbstractKafkaAvroSerializer extends AbstractKafkaSchemaSerDe
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchema| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoRegisterSchema |
protected boolean |
avroReflectionAllowNull |
protected boolean |
avroUseLogicalTypeConverters |
protected boolean |
idCompatStrict |
protected boolean |
latestCompatStrict |
protected boolean |
normalizeSchema |
protected boolean |
propagateSchemaTags |
protected boolean |
removeJavaProperties |
protected int |
useSchemaId |
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 |
|---|
AbstractKafkaAvroSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(KafkaAvroSerializerConfig config) |
protected byte[] |
serializeImpl(String subject,
Object object,
AvroSchema schema) |
protected byte[] |
serializeImpl(String subject,
String topic,
org.apache.kafka.common.header.Headers headers,
Object object,
AvroSchema schema) |
protected KafkaAvroSerializerConfig |
serializerConfig(Map<String,?> props) |
protected KafkaAvroSerializerConfig |
serializerConfig(Properties props) |
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 normalizeSchema
protected boolean autoRegisterSchema
protected boolean propagateSchemaTags
protected boolean removeJavaProperties
protected int useSchemaId
protected boolean idCompatStrict
protected boolean latestCompatStrict
protected boolean avroReflectionAllowNull
protected boolean avroUseLogicalTypeConverters
protected void configure(KafkaAvroSerializerConfig config)
protected KafkaAvroSerializerConfig serializerConfig(Map<String,?> props)
protected KafkaAvroSerializerConfig serializerConfig(Properties props)
protected byte[] serializeImpl(String subject, Object object, AvroSchema schema) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected byte[] serializeImpl(String subject, String topic, org.apache.kafka.common.header.Headers headers, Object object, AvroSchema schema) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionCopyright © 2025 Confluent, Inc.. All rights reserved.