Package org.apache.drill.exec.store.sys
Interface PersistentStoreProvider
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BasePersistentStoreProvider,CachingPersistentStoreProvider,HBasePersistentStoreProvider,HBasePStoreProvider,InMemoryStoreProvider,LocalPersistentStoreProvider,MongoPersistentStoreProvider,ZkPStoreProvider,ZookeeperPersistentStoreProvider
A factory used to create
store instances.-
Method Summary
Modifier and TypeMethodDescription<V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) Gets or creates apersistent storefor the given configuration.default <V> VersionedPersistentStore<V> getOrCreateVersionedStore(PersistentStoreConfig<V> config) Override this method if store supports versioning and return versioning instance.voidstart()Sets up the provider.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getOrCreateStore
Gets 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
default <V> VersionedPersistentStore<V> getOrCreateVersionedStore(PersistentStoreConfig<V> config) throws StoreException Override 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
Sets up the provider.- Throws:
Exception
-