Class MVStoreModule

java.lang.Object
org.dizitart.no2.mvstore.MVStoreModule
All Implemented Interfaces:
org.dizitart.no2.common.module.NitriteModule, org.dizitart.no2.store.StoreModule

public class MVStoreModule extends Object implements 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 Details

    • MVStoreModule

      public MVStoreModule(String path)
      Constructs a new instance of MVStoreModule with the specified file path.
      Parameters:
      path - the file path for the MVStore database.
  • Method Details

    • plugins

      public Set<org.dizitart.no2.common.module.NitritePlugin> plugins()
      Specified by:
      plugins in interface org.dizitart.no2.common.module.NitriteModule
    • withConfig

      public static MVStoreModuleBuilder withConfig()
      Returns a new instance of MVStoreModuleBuilder to configure the MVStore module.
      Returns:
      a new instance of MVStoreModuleBuilder.
    • getStore

      public org.dizitart.no2.store.NitriteStore<?> getStore()
      Returns a new instance of NitriteStore with the configured StoreConfig.
      Specified by:
      getStore in interface org.dizitart.no2.store.StoreModule
      Returns:
      a new instance of NitriteStore.