Package com.linkedin.venice.schema.rmd
Class RmdSchemaGenerator
java.lang.Object
com.linkedin.venice.schema.rmd.RmdSchemaGenerator
This is simply a wrapper class to delegate the actual schema generation to version specific adapter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.Schema
generateMetadataSchema
(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
-
Method Details
-
generateMetadataSchema
-
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)
-