Package org.kiji.schema.util.AvroUtils

Examples of org.kiji.schema.util.AvroUtils.SchemaSetCompatibility


    final List<String> incompatabilityMessages = Lists.newArrayList();

    for (Schema readerSchema : readerSchemas) {
      // Check that each reader schema can read records written by all writer schemas.
      final SchemaSetCompatibility compat =
          AvroUtils.checkReaderCompatibility(readerSchema, writerSchemas.iterator());
      if (compat.getType() == SchemaCompatibilityType.INCOMPATIBLE) {
        for (SchemaPairCompatibility pairCompat : compat.getCauses()) {
          if (pairCompat.getType() == SchemaCompatibilityType.INCOMPATIBLE) {
            incompatabilityMessages.add(
                String.format("Reader schema: %s is incompatible with writer schema: %s.",
                pairCompat.getReader(), pairCompat.getWriter()));
          }
View Full Code Here

TOP

Related Classes of org.kiji.schema.util.AvroUtils.SchemaSetCompatibility

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.