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
FieldsFields inherited from interface io.confluent.kafka.schemaregistry.SchemaProvider
SCHEMA_VERSION_FETCHER_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseSchemaOrElseThrow(Schema schema, boolean isNew, boolean normalize) Parses a string representing a schema.Returns the schema type.Methods inherited from class io.confluent.kafka.schemaregistry.AbstractSchemaProvider
canLookupIgnoringVersion, 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
-
Field Details
-
AVRO_VALIDATE_DEFAULTS
- See Also:
-
-
Constructor Details
-
AvroSchemaProvider
public AvroSchemaProvider()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable- Specified by:
configurein interfaceSchemaProvider- Overrides:
configurein classAbstractSchemaProvider
-
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 schemaisNew- whether the schema is newnormalize- whether to normalize the schema- Returns:
- a parsed schema or throw an error
-