Class AvroSerdeConfig

java.lang.Object
io.apicurio.registry.resolver.config.AbstractConfig
io.apicurio.registry.resolver.config.SchemaResolverConfig
io.apicurio.registry.serde.config.SerdeConfig
io.apicurio.registry.serde.avro.AvroSerdeConfig

public class AvroSerdeConfig extends SerdeConfig
  • Field Details

    • AVRO_ENCODING

      public static final String AVRO_ENCODING
      Used by the Avro serde classes to choose an io.apicurio.registry.serde.avro.AvroEncoding, for example JSON or BINARY. Serializer and Deserializer configuration must match.
      See Also:
    • AVRO_ENCODING_JSON

      public static final String AVRO_ENCODING_JSON
      See Also:
    • AVRO_ENCODING_BINARY

      public static final String AVRO_ENCODING_BINARY
      See Also:
    • AVRO_DATUM_PROVIDER

      public static final String AVRO_DATUM_PROVIDER
      See Also:
    • AVRO_DATUM_PROVIDER_DEFAULT

      public static final String AVRO_DATUM_PROVIDER_DEFAULT
    • USE_SPECIFIC_AVRO_READER

      public static final String USE_SPECIFIC_AVRO_READER
      See Also:
    • USE_SPECIFIC_AVRO_READER_DEFAULT

      public static final boolean USE_SPECIFIC_AVRO_READER_DEFAULT
      See Also:
    • AVRO_SCHEMA_CACHE_SIZE

      public static final String AVRO_SCHEMA_CACHE_SIZE
      Configures the maximum number of entries in the Avro schema parser cache. The cache stores parsed schema results to avoid redundant parsing on repeated calls. Valid values are positive integers.
      See Also:
    • AVRO_SCHEMA_CACHE_SIZE_DEFAULT

      public static final long AVRO_SCHEMA_CACHE_SIZE_DEFAULT
      See Also:
  • Constructor Details

    • AvroSerdeConfig

      public AvroSerdeConfig(Map<String,?> originals)
  • Method Details

    • getAvroEncoding

      public AvroEncoding getAvroEncoding()
    • getAvroDatumProvider

      public Class<?> getAvroDatumProvider()
    • useSpecificAvroReader

      public boolean useSpecificAvroReader()
    • getSchemaCacheSize

      public int getSchemaCacheSize()
      Returns the maximum number of entries in the Avro schema parser cache.
      Returns:
      the schema cache size
    • getDefaults

      protected Map<String,?> getDefaults()
      Overrides:
      getDefaults in class SerdeConfig