Class SchemaValidatorBuilder

java.lang.Object
org.apache.avro.SchemaValidatorBuilder

public final class SchemaValidatorBuilder extends Object

A Builder for creating SchemaValidators.

  • Constructor Details

    • SchemaValidatorBuilder

      public SchemaValidatorBuilder()
  • Method Details

    • strategy

    • canReadStrategy

      public SchemaValidatorBuilder canReadStrategy()
      Use a strategy that validates that a schema can be used to read existing schema(s) according to the Avro default schema resolution.
    • canBeReadStrategy

      public SchemaValidatorBuilder canBeReadStrategy()
      Use a strategy that validates that a schema can be read by existing schema(s) according to the Avro default schema resolution.
    • mutualReadStrategy

      public SchemaValidatorBuilder mutualReadStrategy()
      Use a strategy that validates that a schema can read existing schema(s), and vice-versa, according to the Avro default schema resolution.
    • validateLatest

      public SchemaValidator validateLatest()
    • validateAll

      public SchemaValidator validateAll()