Skip to content

Instantly share code, notes, and snippets.

Last active May 21, 2020
What would you like to do?
Avro Schema Registry Abstract class
import org.apache.avro.Schema;
import org.apache.avro.SchemaNormalization;
public abstract class SchemaRegistry {
public abstract long registerSchema(Schema schema) throws IOException;
public abstract Schema getSchema(long fingerprint) throws IOException;
public long getSchemaFingerprint(Schema schema) {
return SchemaNormalization.parsingFingerprint64(schema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment