public interface SchemaIncompatibilityChecker
Modifier and Type | Method and Description |
---|---|
default void |
assertSchemaCompatibility(Class<?> readerType,
org.apache.avro.Schema readerSchema,
org.apache.avro.Schema writerSchema,
boolean includeSchemasInStackTraces)
Checks schema compatibilities and throws exception if schemas are not compatible.
|
default List<org.apache.avro.SchemaCompatibility.Incompatibility> |
checkCompatibility(org.apache.avro.Schema readerSchema,
org.apache.avro.Schema writerSchema)
Performs compatibility check.
|
default void assertSchemaCompatibility(@Nonnull Class<?> readerType, @Nonnull org.apache.avro.Schema readerSchema, @Nonnull org.apache.avro.Schema writerSchema, boolean includeSchemasInStackTraces)
readerType
- intended reader type.readerSchema
- schema available on the reader side.writerSchema
- schema that was used to write the data.SerializationException
- if the schema check has not passed.@Nonnull default List<org.apache.avro.SchemaCompatibility.Incompatibility> checkCompatibility(@Nonnull org.apache.avro.Schema readerSchema, @Nonnull org.apache.avro.Schema writerSchema)
readerSchema
- reader schema to check.writerSchema
- writer schema to check.Copyright © 2010–2025. All rights reserved.