Class CachingPersistentStoreProvider
java.lang.Object
org.apache.drill.exec.store.sys.store.provider.BasePersistentStoreProvider
org.apache.drill.exec.store.sys.store.provider.CachingPersistentStoreProvider
- All Implemented Interfaces:
AutoCloseable,PersistentStoreProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) Gets or creates apersistent storefor the given configuration.<V> VersionedPersistentStore<V> getOrCreateVersionedStore(PersistentStoreConfig<V> config) Override this method if store supports versioning and return versioning instance.voidstart()Sets up the provider.
-
Constructor Details
-
CachingPersistentStoreProvider
-
-
Method Details
-
getOrCreateStore
public <V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) throws StoreException Description copied from interface:PersistentStoreProviderGets or creates apersistent storefor the given configuration. Note that implementors have liberty to cache previousstoreinstances.- Type Parameters:
V- store value type- Parameters:
config- store configuration- Returns:
- persistent store instance
- Throws:
StoreException- in case when unable to create store
-
getOrCreateVersionedStore
public <V> VersionedPersistentStore<V> getOrCreateVersionedStore(PersistentStoreConfig<V> config) throws StoreException Description copied from interface:PersistentStoreProviderOverride this method if store supports versioning and return versioning instance. By default, undefined version wrapper will be used.- Type Parameters:
V- store value type- Parameters:
config- store configuration- Returns:
- versioned persistent store instance
- Throws:
StoreException- in case when unable to create store
-
start
Description copied from interface:PersistentStoreProviderSets up the provider.- Specified by:
startin interfacePersistentStoreProvider- Overrides:
startin classBasePersistentStoreProvider- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classBasePersistentStoreProvider- Throws:
Exception
-