Package com.linkedin.venice.meta
Interface ReadOnlySchemaRepository
-
- All Superinterfaces:
VeniceResource
- All Known Subinterfaces:
ReadWriteSchemaRepository
- All Known Implementing Classes:
HelixReadOnlySchemaRepository
,HelixReadOnlySchemaRepositoryAdapter
,HelixReadOnlyZKSharedSchemaRepository
,HelixReadWriteSchemaRepository
,HelixReadWriteSchemaRepositoryAdapter
,NativeMetadataRepository
,RecordChangeEventReadOnlySchemaRepository
,SharedHelixReadOnlyZKSharedSchemaRepository
,StoreValueSchemasCacheService
,ThinClientMetaStoreBasedRepository
public interface ReadOnlySchemaRepository extends VeniceResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DerivedSchemaEntry
getDerivedSchema(java.lang.String storeName, int valueSchemaId, int writeComputeSchemaId)
GeneratedSchemaID
getDerivedSchemaId(java.lang.String storeName, java.lang.String derivedSchemaStr)
Look up derived schema id and its corresponding value schema id by given store name and derived schema.java.util.Collection<DerivedSchemaEntry>
getDerivedSchemas(java.lang.String storeName)
SchemaEntry
getKeySchema(java.lang.String storeName)
Get key schema for the given store.default DerivedSchemaEntry
getLatestDerivedSchema(java.lang.String storeName)
DerivedSchemaEntry
getLatestDerivedSchema(java.lang.String storeName, int valueSchemaId)
Get the most recent derived schema added to the given store and value schema idRmdSchemaEntry
getReplicationMetadataSchema(java.lang.String storeName, int valueSchemaId, int replicationMetadataVersionId)
java.util.Collection<RmdSchemaEntry>
getReplicationMetadataSchemas(java.lang.String storeName)
SchemaEntry
getSupersetOrLatestValueSchema(java.lang.String storeName)
Get the most recent value schema or superset value schema if one exists.SchemaEntry
getSupersetSchema(java.lang.String storeName)
Get the superset value schema for a given store.SchemaEntry
getValueSchema(java.lang.String storeName, int id)
Get value schema for the given store and value schema id.int
getValueSchemaId(java.lang.String storeName, java.lang.String valueSchemaStr)
Return the schema ID of any schema for the store that has the same parsing canonical form as the schema provided.java.util.Collection<SchemaEntry>
getValueSchemas(java.lang.String storeName)
Get all the value schemas for the given store.boolean
hasValueSchema(java.lang.String storeName, int id)
Check whether the specified schema id is valid or not-
Methods inherited from interface com.linkedin.venice.VeniceResource
clear, refresh
-
-
-
-
Method Detail
-
getKeySchema
SchemaEntry getKeySchema(java.lang.String storeName)
Get key schema for the given store.
-
getValueSchema
SchemaEntry getValueSchema(java.lang.String storeName, int id)
Get value schema for the given store and value schema id.
-
hasValueSchema
boolean hasValueSchema(java.lang.String storeName, int id)
Check whether the specified schema id is valid or not
-
getValueSchemaId
int getValueSchemaId(java.lang.String storeName, java.lang.String valueSchemaStr)
Return the schema ID of any schema for the store that has the same parsing canonical form as the schema provided.
-
getValueSchemas
java.util.Collection<SchemaEntry> getValueSchemas(java.lang.String storeName)
Get all the value schemas for the given store.
-
getSupersetOrLatestValueSchema
SchemaEntry getSupersetOrLatestValueSchema(java.lang.String storeName)
Get the most recent value schema or superset value schema if one exists.
-
getSupersetSchema
SchemaEntry getSupersetSchema(java.lang.String storeName)
Get the superset value schema for a given store. Each store has at most one active superset schema. Specifically a store must have some features enabled (e.g. read compute, write compute) to have a superset value schema which evolves as new value schemas are added.- Returns:
- Superset value schema or
null
if store {@param storeName} does not have any superset value schema.
-
getDerivedSchemaId
GeneratedSchemaID getDerivedSchemaId(java.lang.String storeName, java.lang.String derivedSchemaStr)
Look up derived schema id and its corresponding value schema id by given store name and derived schema. This is likely used by clients that write to Venice- Returns:
- a pair where the first value is value schema id and the second value is derived schema id
-
getDerivedSchema
DerivedSchemaEntry getDerivedSchema(java.lang.String storeName, int valueSchemaId, int writeComputeSchemaId)
-
getDerivedSchemas
java.util.Collection<DerivedSchemaEntry> getDerivedSchemas(java.lang.String storeName)
-
getLatestDerivedSchema
DerivedSchemaEntry getLatestDerivedSchema(java.lang.String storeName, int valueSchemaId)
Get the most recent derived schema added to the given store and value schema id
-
getReplicationMetadataSchema
RmdSchemaEntry getReplicationMetadataSchema(java.lang.String storeName, int valueSchemaId, int replicationMetadataVersionId)
-
getReplicationMetadataSchemas
java.util.Collection<RmdSchemaEntry> getReplicationMetadataSchemas(java.lang.String storeName)
-
getLatestDerivedSchema
default DerivedSchemaEntry getLatestDerivedSchema(java.lang.String storeName)
-
-