public interface SchemaProvider
extends org.apache.kafka.common.Configurable
This factory produces instances of ParsedSchema.
To have schema registry use a specific factory, the fully qualified class name of the factory
needs to be specified using the configuration property schema.providers,
which takes a comma-separated list of such factories.
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_VERSION_FETCHER_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
default void |
configure(Map<String,?> configs) |
default Optional<ParsedSchema> |
parseSchema(Schema schema,
boolean isNew)
Parses a schema.
|
default Optional<ParsedSchema> |
parseSchema(Schema schema,
boolean isNew,
boolean normalize)
Parses a schema.
|
default Optional<ParsedSchema> |
parseSchema(String schemaString,
List<SchemaReference> references) |
default Optional<ParsedSchema> |
parseSchema(String schemaString,
List<SchemaReference> references,
boolean isNew)
Parses a string representing a schema.
|
default Optional<ParsedSchema> |
parseSchema(String schemaString,
List<SchemaReference> references,
boolean isNew,
boolean normalize)
Parses a string representing a schema.
|
ParsedSchema |
parseSchemaOrElseThrow(Schema schema,
boolean isNew,
boolean normalize)
Parses a string representing a schema.
|
String |
schemaType()
Returns the schema type.
|
static final String SCHEMA_VERSION_FETCHER_CONFIG
default void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.ConfigurableString schemaType()
default Optional<ParsedSchema> parseSchema(Schema schema, boolean isNew)
schema - the schemaisNew - whether the schema is newdefault Optional<ParsedSchema> parseSchema(Schema schema, boolean isNew, boolean normalize)
schema - the schemaisNew - whether the schema is newnormalize - whether to normalize the schemadefault Optional<ParsedSchema> parseSchema(String schemaString, List<SchemaReference> references, boolean isNew)
schemaString - the schemareferences - a list of schema referencesisNew - whether the schema is newdefault Optional<ParsedSchema> parseSchema(String schemaString, List<SchemaReference> references, boolean isNew, boolean normalize)
schemaString - the schemareferences - a list of schema referencesisNew - whether the schema is newnormalize - whether to normalize the schemadefault Optional<ParsedSchema> parseSchema(String schemaString, List<SchemaReference> references)
ParsedSchema parseSchemaOrElseThrow(Schema schema, boolean isNew, boolean normalize)
schema - the schemaisNew - whether the schema is newnormalize - whether to normalize the schemaCopyright © 2025 Confluent, Inc.. All rights reserved.