Package com.linkedin.davinci.repository
Class RequestBasedMetaRepository
java.lang.Object
com.linkedin.davinci.repository.NativeMetadataRepository
com.linkedin.davinci.repository.RequestBasedMetaRepository
- All Implemented Interfaces:
ClusterInfoProvider
,ReadOnlySchemaRepository
,ReadOnlyStoreRepository
,SubscriptionBasedReadOnlyStoreRepository
,VeniceResource
-
Field Summary
FieldsFields inherited from class com.linkedin.davinci.repository.NativeMetadataRepository
clientConfig, schemaMap, subscribedStoreMap
-
Constructor Summary
ConstructorsConstructorDescriptionRequestBasedMetaRepository
(ClientConfig clientConfig, VeniceProperties backendConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cacheStoreSchema
(String storeName, StorePropertiesResponseRecord record) void
clear()
TODO: we may need to rename this function to be 'close' since this resource should not used any more after calling this function.protected StorePropertiesResponseRecord
fetchAndCacheStorePropertiesResponseRecord
(String storeName) protected StoreConfig
fetchStoreConfigFromRemote
(String storeName) protected Store
fetchStoreFromRemote
(String storeName, String clusterName) protected int
getMaxValueSchemaId
(String storeName) protected SchemaData
getSchemaData
(String storeName) Methods inherited from class com.linkedin.davinci.repository.NativeMetadataRepository
cacheStoreConfigFromRemote, getAllStores, getAndCacheSchemaData, getBatchGetLimit, getDerivedSchema, getDerivedSchemaId, getDerivedSchemas, getInstance, getInstance, getKeySchema, getLatestDerivedSchema, getReplicationMetadataSchema, getReplicationMetadataSchemas, getStore, getStoreOrThrow, getSupersetOrLatestValueSchema, getSupersetSchema, getTotalStoreReadQuota, getValueSchema, getValueSchemaId, getValueSchemaInternally, getValueSchemas, getVeniceCluster, hasStore, hasValueSchema, isReadComputationEnabled, notifyStoreChanged, notifyStoreCreated, notifyStoreDeleted, putStore, refresh, refreshOneStore, registerStoreDataChangedListener, removeStore, removeStoreSchema, start, subscribe, unregisterStoreDataChangedListener, unsubscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.meta.ReadOnlySchemaRepository
getLatestDerivedSchema
Methods inherited from interface com.linkedin.venice.meta.ReadOnlyStoreRepository
waitVersion, waitVersion
-
Field Details
-
storeSchemaMap
-
-
Constructor Details
-
RequestBasedMetaRepository
-
-
Method Details
-
clear
public void clear()Description copied from class:NativeMetadataRepository
TODO: we may need to rename this function to be 'close' since this resource should not used any more after calling this function.- Specified by:
clear
in interfaceVeniceResource
- Overrides:
clear
in classNativeMetadataRepository
-
fetchStoreConfigFromRemote
- Specified by:
fetchStoreConfigFromRemote
in classNativeMetadataRepository
-
fetchStoreFromRemote
- Specified by:
fetchStoreFromRemote
in classNativeMetadataRepository
-
getSchemaData
- Specified by:
getSchemaData
in classNativeMetadataRepository
-
fetchAndCacheStorePropertiesResponseRecord
protected StorePropertiesResponseRecord fetchAndCacheStorePropertiesResponseRecord(String storeName) -
getMaxValueSchemaId
-
cacheStoreSchema
-