Class MongoPersistentStoreProvider
java.lang.Object
org.apache.drill.exec.store.sys.store.provider.BasePersistentStoreProvider
org.apache.drill.exec.store.mongo.config.MongoPersistentStoreProvider
- All Implemented Interfaces:
AutoCloseable
,PersistentStoreProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<V> PersistentStore<V>
getOrCreateStore
(PersistentStoreConfig<V> config) Gets or creates apersistent store
for the given configuration.void
start()
Sets up the provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.store.sys.PersistentStoreProvider
getOrCreateVersionedStore
-
Constructor Details
-
MongoPersistentStoreProvider
-
-
Method Details
-
start
Description copied from interface:PersistentStoreProvider
Sets up the provider.- Specified by:
start
in interfacePersistentStoreProvider
- Overrides:
start
in classBasePersistentStoreProvider
- Throws:
IOException
-
getOrCreateStore
Description copied from interface:PersistentStoreProvider
Gets or creates apersistent store
for the given configuration. Note that implementors have liberty to cache previousstore
instances.- Type Parameters:
V
- store value type- Parameters:
config
- store configuration- Returns:
- persistent store instance
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classBasePersistentStoreProvider
-