Class MergeResultValueSchemaResolverImpl
- java.lang.Object
-
- com.linkedin.davinci.replication.merge.MergeResultValueSchemaResolverImpl
-
public class MergeResultValueSchemaResolverImpl extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MergeResultValueSchemaResolverImpl(StringAnnotatedStoreSchemaCache storeSchemaCache, java.lang.String storeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaEntry
getMergeResultValueSchema(int firstValueSchemaID, int secondValueSchemaID)
For general purpose, refer to Javadoc ofMergeResultValueSchemaResolver.getMergeResultValueSchema(int, int)
.
-
-
-
Constructor Detail
-
MergeResultValueSchemaResolverImpl
public MergeResultValueSchemaResolverImpl(StringAnnotatedStoreSchemaCache storeSchemaCache, java.lang.String storeName)
-
-
Method Detail
-
getMergeResultValueSchema
public SchemaEntry getMergeResultValueSchema(int firstValueSchemaID, int secondValueSchemaID)
For general purpose, refer to Javadoc ofMergeResultValueSchemaResolver.getMergeResultValueSchema(int, int)
. This implementation handles 3 situations: 1. Old value schema ID is the same as new value schema ID. Return either schema. 2. Between old and new value schemas, one is a superset schema of another. Return the one that is the superset schema. 3. Old and new value schemas mismatch. Get and return the registered superset schema on this store.
-
-