confluent-kafka-dotnet
Show / Hide Table of Contents

Class AvroSerializerConfig.PropertyNames

Configuration property names specific to AvroSerializer<T>.

Inheritance
object
AvroSerializerConfig.PropertyNames
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry.Serdes
Assembly: Confluent.SchemaRegistry.Serdes.Avro.dll
Syntax
public static class AvroSerializerConfig.PropertyNames

Fields

AutoRegisterSchemas

Specifies whether or not the Avro serializer should attempt to auto-register unrecognized schemas with Confluent Schema Registry.

default: true

Declaration
public const string AutoRegisterSchemas = "avro.serializer.auto.register.schemas"
Field Value
Type Description
string

BufferBytes

Specifies the initial size (in bytes) of the buffer used for Avro message serialization. Use a value high enough to avoid resizing the buffer, but small enough to avoid excessive memory use. Inspect the size of the byte array returned by the Serialize method to estimate an appropriate value. Note: each call to serialize creates a new buffer.

default: 1024

Declaration
public const string BufferBytes = "avro.serializer.buffer.bytes"
Field Value
Type Description
string

NormalizeSchemas

Specifies whether to normalize schemas, which will transform schemas to have a consistent format, including ordering properties and references.

default: false

Declaration
public const string NormalizeSchemas = "avro.serializer.normalize.schemas"
Field Value
Type Description
string

SubjectNameStrategy

The subject name strategy to use for schema registration / lookup. Possible values: SubjectNameStrategy

Declaration
public const string SubjectNameStrategy = "avro.serializer.subject.name.strategy"
Field Value
Type Description
string

UseLatestVersion

Specifies whether or not the Avro serializer should use the latest subject version for serialization. WARNING: There is no check that the latest schema is backwards compatible with the schema of the object being serialized.

default: false

Declaration
public const string UseLatestVersion = "avro.serializer.use.latest.version"
Field Value
Type Description
string

UseLatestWithMetadata

Specifies whether or not the Avro serializer should use the latest subject version with the given metadata for serialization.

Declaration
public const string UseLatestWithMetadata = "avro.serializer.use.latest.with.metadata"
Field Value
Type Description
string
In this article