Package org.apache.avro

Examples of org.apache.avro.SchemaValidatorBuilder


    // there is a short name match, but the structure does not match
    Schema read = Schema.createUnion(Arrays.asList(
        Schema.create(Schema.Type.NULL),
        point3dNoDefault));

    new SchemaValidatorBuilder().canBeReadStrategy().validateAll()
        .validate(point2dFullname, Arrays.asList(read));
  }
View Full Code Here

TOP

Related Classes of org.apache.avro.SchemaValidatorBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.