Class MVStoreConfig

java.lang.Object
org.dizitart.no2.mvstore.MVStoreConfig
All Implemented Interfaces:
org.dizitart.no2.store.StoreConfig

public class MVStoreConfig extends Object implements org.dizitart.no2.store.StoreConfig
Configuration class for MVStore.
Since:
4.0
Author:
Anindya Chatterjee
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addStoreEventListener(org.dizitart.no2.store.events.StoreEventListener listener)
     
    boolean
    Indicates whether auto-commit mode is enabled for the MVStore.
    int
    The size of the buffer used for auto-commit operations.
    boolean
    Sets a value indicating whether the MVStore should automatically compact itself when it is closed.
    int
    The number of threads that can concurrently access the MVStore cache.
    int
    The size of the cache (in KB) used by the MVStore.
    Creates and returns a copy of this object.
    boolean
    Indicates whether the MVStore should compress data or not.
    boolean
    Indicates whether to use high compression for data blocks.
    char[]
    The encryption key to be used for encrypting and decrypting the data.
    Set<org.dizitart.no2.store.events.StoreEventListener>
    The set of event listeners for the MVStore.
    The file path of the MVStore file.
    org.h2.mvstore.FileStore<?>
    The file store used by the MVStore.
    A flag indicating whether the MVStore should be opened in read-only mode.
    int
    Sets the page split size for the MVStore.
    boolean
    Indicates whether the MVStore should be opened in recovery mode or not.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.dizitart.no2.store.StoreConfig

    isInMemory
  • Method Details

    • addStoreEventListener

      public void addStoreEventListener(org.dizitart.no2.store.events.StoreEventListener listener)
      Specified by:
      addStoreEventListener in interface org.dizitart.no2.store.StoreConfig
    • clone

      public MVStoreConfig clone()
      Creates and returns a copy of this object.
      Returns:
      a clone of this instance.
    • eventListeners

      public Set<org.dizitart.no2.store.events.StoreEventListener> eventListeners()
      The set of event listeners for the MVStore.
    • filePath

      public String filePath()
      The file path of the MVStore file.
      Specified by:
      filePath in interface org.dizitart.no2.store.StoreConfig
    • autoCommitBufferSize

      public int autoCommitBufferSize()
      The size of the buffer used for auto-commit operations.
    • encryptionKey

      public char[] encryptionKey()
      The encryption key to be used for encrypting and decrypting the data.
    • isReadOnly

      public Boolean isReadOnly()
      A flag indicating whether the MVStore should be opened in read-only mode.
      Specified by:
      isReadOnly in interface org.dizitart.no2.store.StoreConfig
    • compress

      public boolean compress()
      Indicates whether the MVStore should compress data or not.
    • compressHigh

      public boolean compressHigh()
      Indicates whether to use high compression for data blocks.
    • autoCommit

      public boolean autoCommit()
      Indicates whether auto-commit mode is enabled for the MVStore.
    • autoCompact

      public boolean autoCompact()
      Sets a value indicating whether the MVStore should automatically compact itself when it is closed.
    • recoveryMode

      public boolean recoveryMode()
      Indicates whether the MVStore should be opened in recovery mode or not.
    • cacheSize

      public int cacheSize()
      The size of the cache (in KB) used by the MVStore.
    • cacheConcurrency

      public int cacheConcurrency()
      The number of threads that can concurrently access the MVStore cache.
    • pageSplitSize

      public int pageSplitSize()
      Sets the page split size for the MVStore.
    • fileStore

      public org.h2.mvstore.FileStore<?> fileStore()
      The file store used by the MVStore.