Class AvroSchemaProvider

java.lang.Object
io.confluent.kafka.schemaregistry.AbstractSchemaProvider
io.confluent.kafka.schemaregistry.avro.AvroSchemaProvider
All Implemented Interfaces:
SchemaProvider, org.apache.kafka.common.Configurable

public class AvroSchemaProvider extends AbstractSchemaProvider
  • Field Details

  • Constructor Details

    • AvroSchemaProvider

      public AvroSchemaProvider()
  • Method Details

    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable
      Specified by:
      configure in interface SchemaProvider
      Overrides:
      configure in class AbstractSchemaProvider
    • schemaType

      public String schemaType()
      Description copied from interface: SchemaProvider
      Returns the schema type.
      Returns:
      the schema type
    • parseSchemaOrElseThrow

      public ParsedSchema parseSchemaOrElseThrow(Schema schema, boolean isNew, boolean normalize)
      Description copied from interface: SchemaProvider
      Parses a string representing a schema.
      Parameters:
      schema - the schema
      isNew - whether the schema is new
      normalize - whether to normalize the schema
      Returns:
      a parsed schema or throw an error