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 -
Method Summary
Modifier and TypeMethodDescriptionio.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema>getSchemaFromData(io.apicurio.registry.resolver.data.Record<U> data) io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema>getSchemaFromData(io.apicurio.registry.resolver.data.Record<U> data, boolean dereference) org.apache.avro.SchemaparseSchema(byte[] rawSchema, Map<String, io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema>> resolvedReferences) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.apicurio.registry.resolver.SchemaParser
supportsExtractSchemaFromData
-
Constructor Details
-
AvroSchemaParser
-
-
Method Details
-
artifactType
- Specified by:
artifactTypein interfaceio.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,U> - See Also:
-
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:
-
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:
-
SchemaParser.getSchemaFromData(Record)
-
getSchemaFromData
public io.apicurio.registry.resolver.ParsedSchema<org.apache.avro.Schema> getSchemaFromData(io.apicurio.registry.resolver.data.Record<U> data, boolean dereference) - Specified by:
getSchemaFromDatain interfaceio.apicurio.registry.resolver.SchemaParser<org.apache.avro.Schema,U> - See Also:
-
SchemaParser.getSchemaFromData(Record, boolean)
-