Interface SupersetSchemaGenerator

All Known Implementing Classes:
DefaultSupersetSchemaGenerator, SupersetSchemaGeneratorWithCustomProp

public interface SupersetSchemaGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compareSchema(org.apache.avro.Schema s1, org.apache.avro.Schema s2)
    Compare whether two schemas are equal or not with the consideration of superset schema.
    org.apache.avro.Schema
    generateSupersetSchema(org.apache.avro.Schema existingSchema, org.apache.avro.Schema newSchema)
    Generate the superset schema based on two schemas.
    Function to generate a superset based on all the input schemas.
  • Method Details

    • generateSupersetSchemaFromSchemas

      SchemaEntry generateSupersetSchemaFromSchemas(Collection<SchemaEntry> schemas)
      Function to generate a superset based on all the input schemas.
      Parameters:
      schemas -
      Returns:
      SchemaEntry to contain the generated superset schema and the corresponding schema id.
    • compareSchema

      boolean compareSchema(org.apache.avro.Schema s1, org.apache.avro.Schema s2)
      Compare whether two schemas are equal or not with the consideration of superset schema.
    • generateSupersetSchema

      org.apache.avro.Schema generateSupersetSchema(org.apache.avro.Schema existingSchema, org.apache.avro.Schema newSchema)
      Generate the superset schema based on two schemas.
      Parameters:
      existingSchema - : existing value schema or superset schema
      newSchema - : the new value schema.
      Returns: