Top Description Constructors Methods
org.apache.avro

pack-priv Class ValidateCanBeRead

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

A SchemaValidationStrategy that checks that the data written with the Schema to validate can be read by 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 data written with first schema provided can be read using the second schema, according to the default Avro schema resolution rules.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ValidateCanBeReadback to summary
pack-priv ValidateCanBeRead()

Method Detail

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

Implements org.apache.avro.SchemaValidationStrategy.validate.

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

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