Package io.apicurio.registry.serde.avro
Class AvroSchemaParser<U>
- java.lang.Object
-
- io.apicurio.registry.serde.avro.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 Summary
Constructors Constructor Description AvroSchemaParser(AvroDatumProvider<U> avroDatumProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.apicurio.registry.types.ArtifactTypeartifactType()io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema>getSchemaFromData(io.apicurio.registry.resolver.data.Record<U> data)org.apache.avro.SchemaparseSchema(byte[] rawSchema, Map<String,io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema>> resolvedReferences)
-
-
-
Constructor Detail
-
AvroSchemaParser
public AvroSchemaParser(AvroDatumProvider<U> avroDatumProvider)
-
-
Method Detail
-
artifactType
public io.apicurio.registry.types.ArtifactType artifactType()
- Specified by:
artifactTypein interfaceio.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:
parseSchemain interfaceio.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:
getSchemaFromDatain interfaceio.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,U>- See Also:
io.apicurio.registry.resolver.SchemaParser#getSchemaFromData(java.lang.Object)
-
-