Package com.linkedin.venice.schema.rmd
Class RmdSchemaGenerator
- java.lang.Object
-
- com.linkedin.venice.schema.rmd.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()
-
-
-
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.- Parameters:
schema
- source schema from which replication metadata schema is generated- Returns:
- Generated replication metadata schema
-
getLatestVersion
public static int getLatestVersion()
-
generateMetadataSchema
public static org.apache.avro.Schema generateMetadataSchema(org.apache.avro.Schema schema, int version)
-
-