Top Description Methods
org.apache.avro

public Interface SchemaValidationStrategy

Known Direct Implementers
org.apache.avro.ValidateCanBeRead, org.apache.avro.ValidateCanRead, org.apache.avro.ValidateMutualRead

An interface for validating the compatibility of a single schema against another.

What makes one schema compatible with another is not defined by the contract.

Method Summary

Modifier and TypeMethod and Description
public void
validate(Schema toValidate, Schema existing)

Validates that one schema is compatible with another.

Method Detail

validateback to summary
public void validate(Schema toValidate, Schema existing) throws SchemaValidationException

Validates that one schema is compatible with another.

Exceptions
SchemaValidationException:
if the schemas are not compatible.