Class RmdSchemaGenerator

  • public class RmdSchemaGenerator
    extends java.lang.Object
    This is simply a wrapper class to delegate the actual schema generation to version specific adapter.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.avro.Schema generateMetadataSchema​(java.lang.String schemaStr, int version)  
      static org.apache.avro.Schema generateMetadataSchema​(org.apache.avro.Schema schema)
      Generate the latest replication metadata schema.
      static org.apache.avro.Schema generateMetadataSchema​(org.apache.avro.Schema schema, int version)  
      static int getLatestVersion()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • generateMetadataSchema

        public static org.apache.avro.Schema generateMetadataSchema​(java.lang.String schemaStr,
                                                                    int version)
      • generateMetadataSchema

        public static org.apache.avro.Schema generateMetadataSchema​(org.apache.avro.Schema schema)
        Generate the latest replication metadata schema.
        schema - source schema from which replication metadata schema is generated
        Generated replication metadata schema
      • getLatestVersion

        public static int getLatestVersion()
      • generateMetadataSchema

        public static org.apache.avro.Schema generateMetadataSchema​(org.apache.avro.Schema schema,
                                                                    int version)