Package org.dizitart.no2.mvstore
Class MVStoreModule
java.lang.Object
org.dizitart.no2.mvstore.MVStoreModule
- All Implemented Interfaces:
org.dizitart.no2.common.module.NitriteModule,org.dizitart.no2.store.StoreModule
A Nitrite module that provides a Nitrite store implementation using H2 MVStore.
- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
-
NitriteStore
-
Constructor Summary
ConstructorsConstructorDescriptionMVStoreModule(String path) Constructs a new instance ofMVStoreModulewith the specified file path. -
Method Summary
Modifier and TypeMethodDescriptionorg.dizitart.no2.store.NitriteStore<?>getStore()Returns a new instance ofNitriteStorewith the configuredStoreConfig.Set<org.dizitart.no2.common.module.NitritePlugin>plugins()static MVStoreModuleBuilderReturns a new instance ofMVStoreModuleBuilderto configure the MVStore module.
-
Constructor Details
-
MVStoreModule
Constructs a new instance ofMVStoreModulewith the specified file path.- Parameters:
path- the file path for the MVStore database.
-
-
Method Details
-
plugins
- Specified by:
pluginsin interfaceorg.dizitart.no2.common.module.NitriteModule
-
withConfig
Returns a new instance ofMVStoreModuleBuilderto configure the MVStore module.- Returns:
- a new instance of
MVStoreModuleBuilder.
-
getStore
public org.dizitart.no2.store.NitriteStore<?> getStore()Returns a new instance ofNitriteStorewith the configuredStoreConfig.- Specified by:
getStorein interfaceorg.dizitart.no2.store.StoreModule- Returns:
- a new instance of
NitriteStore.
-