Package org.dizitart.no2.mvstore
Class MVStoreConfig
java.lang.Object
org.dizitart.no2.mvstore.MVStoreConfig
- All Implemented Interfaces:
org.dizitart.no2.store.StoreConfig
Configuration class for MVStore.
- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStoreEventListener(org.dizitart.no2.store.events.StoreEventListener listener) booleanIndicates whether auto-commit mode is enabled for the MVStore.intThe size of the buffer used for auto-commit operations.booleanSets a value indicating whether the MVStore should automatically compact itself when it is closed.intThe number of threads that can concurrently access the MVStore cache.intThe size of the cache (in KB) used by the MVStore.clone()Creates and returns a copy of this object.booleancompress()Indicates whether the MVStore should compress data or not.booleanIndicates 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.filePath()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.intSets the page split size for the MVStore.booleanIndicates 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, waitMethods inherited from interface org.dizitart.no2.store.StoreConfig
isInMemory
-
Method Details
-
addStoreEventListener
public void addStoreEventListener(org.dizitart.no2.store.events.StoreEventListener listener) - Specified by:
addStoreEventListenerin interfaceorg.dizitart.no2.store.StoreConfig
-
clone
Creates and returns a copy of this object.- Returns:
- a clone of this instance.
-
eventListeners
The set of event listeners for the MVStore. -
filePath
The file path of the MVStore file.- Specified by:
filePathin interfaceorg.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
A flag indicating whether the MVStore should be opened in read-only mode.- Specified by:
isReadOnlyin interfaceorg.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.
-