Package com.linkedin.davinci.repository
Class ThinClientMetaStoreBasedRepository
java.lang.Object
com.linkedin.davinci.repository.NativeMetadataRepository
com.linkedin.davinci.repository.ThinClientMetaStoreBasedRepository
- All Implemented Interfaces:
ClusterInfoProvider
,ReadOnlySchemaRepository
,ReadOnlyStoreRepository
,SubscriptionBasedReadOnlyStoreRepository
,VeniceResource
-
Field Summary
Fields inherited from class com.linkedin.davinci.repository.NativeMetadataRepository
clientConfig, subscribedStoreMap
-
Constructor Summary
ConstructorDescriptionThinClientMetaStoreBasedRepository
(ClientConfig clientConfig, VeniceProperties backendConfig, ICProvider icProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 SchemaData
getSchemaDataFromSystemStore
(String storeName) protected StoreConfig
getStoreConfigFromSystemStore
(String storeName) protected Store
getStoreFromSystemStore
(String storeName, String clusterName) protected StoreMetaValue
getStoreMetaValue
(String storeName, StoreMetaKey key) void
Methods inherited from class com.linkedin.davinci.repository.NativeMetadataRepository
getAllStores, getAndCacheSchemaDataFromSystemStore, getAndSetStoreConfigFromSystemStore, getBatchGetLimit, getDerivedSchema, getDerivedSchemaId, getDerivedSchemas, getInstance, getInstance, getKeySchema, getLatestDerivedSchema, getReplicationMetadataSchema, getReplicationMetadataSchemas, getSchemaDataFromMetaSystemStore, getStore, getStoreConfigFromMetaSystemStore, getStoreOrThrow, getSupersetOrLatestValueSchema, getSupersetSchema, getTotalStoreReadQuota, getValueSchema, getValueSchemaId, getValueSchemaInternally, getValueSchemas, getVeniceCluster, hasStore, hasValueSchema, isReadComputationEnabled, notifyStoreChanged, notifyStoreCreated, notifyStoreDeleted, putStore, refresh, refreshOneStore, registerStoreDataChangedListener, removeStore, removeStoreSchema, start, 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
-
Constructor Details
-
ThinClientMetaStoreBasedRepository
public ThinClientMetaStoreBasedRepository(ClientConfig clientConfig, VeniceProperties backendConfig, ICProvider icProvider)
-
-
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
-
subscribe
- Specified by:
subscribe
in interfaceSubscriptionBasedReadOnlyStoreRepository
- Overrides:
subscribe
in classNativeMetadataRepository
- Throws:
InterruptedException
-
getStoreConfigFromSystemStore
- Specified by:
getStoreConfigFromSystemStore
in classNativeMetadataRepository
-
getStoreFromSystemStore
- Specified by:
getStoreFromSystemStore
in classNativeMetadataRepository
-
getSchemaDataFromSystemStore
- Specified by:
getSchemaDataFromSystemStore
in classNativeMetadataRepository
-
getStoreMetaValue
- Specified by:
getStoreMetaValue
in classNativeMetadataRepository
-