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
-
Field Summary
Fields inherited from class io.confluent.kafka.schemaregistry.AbstractSchemaProvider
REFERENCE_VERSIONS_STRICT_CONFIGFields inherited from interface io.confluent.kafka.schemaregistry.SchemaProvider
SCHEMA_PROVIDERS_PREFIX, SCHEMA_VERSION_FETCHER_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseSchemaOrElseThrow(Schema schema, boolean validateAsNew, boolean normalize) Parses a string representing a schema.Returns the schema type.Methods inherited from class io.confluent.kafka.schemaregistry.AbstractSchemaProvider
canLookupIgnoringVersion, configure, getConfluentVersion, getConfluentVersionNumber, hasLatestVersion, replaceLatestVersion, resolveReferences, resolveReferences, schemaVersionFetcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.kafka.schemaregistry.SchemaProvider
parseSchema, parseSchema, parseSchema, parseSchema, parseSchema
-
Constructor Details
-
AvroSchemaProvider
public AvroSchemaProvider()
-
-
Method Details
-
schemaType
Description copied from interface:SchemaProviderReturns the schema type.- Returns:
- the schema type
-
parseSchemaOrElseThrow
Description copied from interface:SchemaProviderParses a string representing a schema.- Parameters:
schema- the schemavalidateAsNew- whether the schema should be validated as a new schemanormalize- whether to normalize the schema- Returns:
- a parsed schema or throw an error
-