A pre-configured, 8 Leveled, persistent database where Level1 accumulates a minimum of 10 Segments before pushing Segments to lower Level.
A pre-configured, 8 Leveled, persistent database where Level1 accumulates a minimum of 10 Segments before pushing Segments to lower Level.
For custom configurations read documentation on website: http://www.swaydb.io/configuring-levels
Type of key
Type of value
Root directory for all Level where appendix folder & files are created
Number of concurrent Segments opened
Size of in-memory key-values
Size of LevelZero's maps (WAL)
Memory-maps LevelZero maps files if set to true else reverts java.nio.FileChannel
Memory-maps Levels appendix files if set to true else reverts java.nio.FileChannel
Memory-maps Levels Segment files if set to true else reverts java.nio.FileChannel
Minimum size of Segment files in each Level
Size of the appendix file before it's flushed. Appendix files are append only log files. Flushing removes deleted entries in the file hence reducing the size of the file.
Secondary directories for all Levels where Segments get distributed.
Sets the max interval at which key-values get dropped from the cache. The delays are dynamically adjusted based on the current size of the cache to stay close the set cacheSize.
Sets the max interval at which Segments get closed. The delays are dynamically adjusted based on the current number of open Segments.
Controls the write speed.
Converts keys to Bytes
Converts values to Bytes
ExecutionContext
Database instance
(Since version ) see corresponding Javadoc for more information.