Package io.confluent.kafka.serializers
Class KafkaAvroDecoder
java.lang.Object
io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe
io.confluent.kafka.serializers.AbstractKafkaAvroDeserializer
io.confluent.kafka.serializers.KafkaAvroDecoder
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.tools.api.Decoder<Object>
public class KafkaAvroDecoder
extends AbstractKafkaAvroDeserializer
implements org.apache.kafka.tools.api.Decoder<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchema -
Field Summary
Fields inherited from class io.confluent.kafka.serializers.AbstractKafkaAvroDeserializer
avroReflectionAllowNull, avroUseLogicalTypeConverters, specificAvroReaderSchema, useSpecificAvroReaderFields 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
ConstructorsConstructorDescriptionKafkaAvroDecoder(SchemaRegistryClient schemaRegistry) KafkaAvroDecoder(SchemaRegistryClient schemaRegistry, kafka.utils.VerifiableProperties props) KafkaAvroDecoder(kafka.utils.VerifiableProperties props) Constructor used by Kafka consumer. -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(byte[] bytes) fromBytes(byte[] bytes, org.apache.avro.Schema readerSchema) Pass a reader schema to get an Avro projectionfromBytes(org.apache.kafka.common.header.Headers headers, byte[] bytes) fromBytes(org.apache.kafka.common.header.Headers headers, byte[] bytes, org.apache.avro.Schema readerSchema) Pass a reader schema to get an Avro projectionMethods inherited from class io.confluent.kafka.serializers.AbstractKafkaAvroDeserializer
configure, configure, deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, deserializerConfig, deserializerConfig, deserializeWithSchemaAndVersion, deserializeWithSchemaAndVersion, getDatumReaderMethods 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
-
Constructor Details
-
KafkaAvroDecoder
-
KafkaAvroDecoder
public KafkaAvroDecoder(SchemaRegistryClient schemaRegistry, kafka.utils.VerifiableProperties props) -
KafkaAvroDecoder
public KafkaAvroDecoder(kafka.utils.VerifiableProperties props) Constructor used by Kafka consumer.
-
-
Method Details
-
fromBytes
- Specified by:
fromBytesin interfaceorg.apache.kafka.tools.api.Decoder<Object>
-
fromBytes
Pass a reader schema to get an Avro projection -
fromBytes
-
fromBytes
public Object fromBytes(org.apache.kafka.common.header.Headers headers, byte[] bytes, org.apache.avro.Schema readerSchema) Pass a reader schema to get an Avro projection
-