Package io.confluent.kafka.serializers
Class AbstractKafkaAvroSerializer
java.lang.Object
io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe
io.confluent.kafka.serializers.AbstractKafkaAvroSerializer
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
KafkaAvroSerializer
-
Nested Class Summary
Nested classes/interfaces inherited from class io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchema -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intFields inherited from class io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe
config, configOriginals, contextNameStrategy, DEFAULT_CACHE_CAPACITY, enableRuleServiceLoader, isKey, keySchemaIdDeserializer, keySchemaIdSerializer, keySubjectNameStrategy, latestVersions, latestWithMetadata, metadata, ruleActions, ruleExecutors, schemaRegistry, ticker, useLatestVersion, useSchemaReflection, valueSchemaIdDeserializer, valueSchemaIdSerializer, valueSubjectNameStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(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 KafkaAvroSerializerConfigserializerConfig(Map<String, ?> props) protected KafkaAvroSerializerConfigserializerConfig(Properties props) Methods inherited from class io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe
clearKey, close, configureClientProperties, executeMigrations, executeRules, executeRules, executeRules, getById, getBySubjectAndId, getContextName, getContextName, getLatestWithMetadata, getMigrations, getOldSubjectName, getRuleActions, getRuleExecutors, getSchemaById, getSchemaBySchemaId, getSchemaBySubjectAndId, getSchemaRegistryClient, getSubjectName, isKey, key, latestVersionsCache, latestWithMetadataCache, lookupLatestVersion, lookupLatestVersion, lookupSchemaBySubjectAndId, postOp, register, register, register, registerWithResponse, schemaIdDeserializer, schemaIdSerializer, setKey, strategyUsesSchema, ticker, toKafkaException
-
Field Details
-
normalizeSchema
protected boolean normalizeSchema -
autoRegisterSchema
protected boolean autoRegisterSchema -
propagateSchemaTags
protected boolean propagateSchemaTags -
removeJavaProperties
protected boolean removeJavaProperties -
useSchemaId
protected int useSchemaId -
idCompatStrict
protected boolean idCompatStrict -
latestCompatStrict
protected boolean latestCompatStrict -
avroReflectionAllowNull
protected boolean avroReflectionAllowNull -
avroUseLogicalTypeConverters
protected boolean avroUseLogicalTypeConverters
-
-
Constructor Details
-
AbstractKafkaAvroSerializer
public AbstractKafkaAvroSerializer()
-
-
Method Details
-
configure
-
serializerConfig
-
serializerConfig
-
serializeImpl
protected byte[] serializeImpl(String subject, Object object, AvroSchema schema) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException - Throws:
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationException
-
serializeImpl
protected 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 - Throws:
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationException
-