org.apache.avro

Interface SchemaValidator

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void validate(Schema toValidate, Iterable<Schema> existing)
      Validate one schema against others.
    • Method Detail

      • validate

        void validate(Schema toValidate,
                    Iterable<Schema> existing)
                      throws SchemaValidationException
        Validate one schema against others. The order of the schemas to validate against is chronological from most recent to oldest, if there is a natural chronological order. This allows some validators to identify which schemas are the most "recent" in order to validate only against the mosst recent schema(s).
        Parameters:
        toValidate - The schema to validate
        existing - The schemas to validate against, in order from most recent to latest if applicable
        Throws:
        SchemaValidationException - if the schema fails to validate.

Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.