Top Description Constructors Methods
org.apache.avro

pack-priv Class ValidateCanRead

extends Object
implements SchemaValidationStrategy
Class Inheritance
All Implemented Interfaces
org.apache.avro.SchemaValidationStrategy

A SchemaValidationStrategy that checks that the Schema to validate can read the existing schema according to the default Avro schema resolution rules.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Implements org.apache.avro.SchemaValidationStrategy.validate.

Validate that the first schema provided can be used to read data written with the second schema, according to the default Avro schema resolution rules.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ValidateCanReadback to summary
pack-priv ValidateCanRead()

Method Detail

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

Implements org.apache.avro.SchemaValidationStrategy.validate.

Validate that the first schema provided can be used to read data written with the second schema, according to the default Avro schema resolution rules.

Annotations
@Override
Exceptions
SchemaValidationException:
if the first schema cannot read data written by the second.