public class LocalPersistentStoreProvider extends BasePersistentStoreProvider
Constructor and Description |
---|
LocalPersistentStoreProvider(DrillConfig config) |
LocalPersistentStoreProvider(PersistentStoreRegistry<?> registry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<V> PersistentStore<V> |
getOrCreateStore(PersistentStoreConfig<V> storeConfig)
Gets or creates a
persistent store for the given configuration. |
<V> VersionedPersistentStore<V> |
getOrCreateVersionedStore(PersistentStoreConfig<V> config)
Override this method if store supports versioning and return versioning instance.
|
start
public LocalPersistentStoreProvider(PersistentStoreRegistry<?> registry) throws StoreException
StoreException
public LocalPersistentStoreProvider(DrillConfig config) throws StoreException
StoreException
public <V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> storeConfig)
PersistentStoreProvider
persistent store
for the given configuration.
Note that implementors have liberty to cache previous store
instances.V
- store value typestoreConfig
- store configurationpublic <V> VersionedPersistentStore<V> getOrCreateVersionedStore(PersistentStoreConfig<V> config)
PersistentStoreProvider
V
- store value typeconfig
- store configurationpublic void close() throws Exception
close
in interface AutoCloseable
close
in class BasePersistentStoreProvider
Exception
Copyright © 1970 The Apache Software Foundation. All rights reserved.