Class AvroSchemaParser<U>

  • All Implemented Interfaces:
    io.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,​U>

    public class AvroSchemaParser<U>
    extends Object
    implements io.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,​U>
    Author:
    Fabian Martinez, Carles Arnal
    • Constructor Detail

    • Method Detail

      • artifactType

        public io.apicurio.registry.types.ArtifactType artifactType()
        Specified by:
        artifactType in interface io.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,​U>
        See Also:
        SchemaParser.artifactType()
      • parseSchema

        public org.apache.avro.Schema parseSchema​(byte[] rawSchema,
                                                  Map<String,​io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema>> resolvedReferences)
        Specified by:
        parseSchema in interface io.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,​U>
        See Also:
        SchemaParser.parseSchema(byte[])
      • getSchemaFromData

        public io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema> getSchemaFromData​(io.apicurio.registry.resolver.data.Record<U> data)
        Specified by:
        getSchemaFromData in interface io.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,​U>
        See Also:
        io.apicurio.registry.resolver.SchemaParser#getSchemaFromData(java.lang.Object)