| Package | Description |
|---|---|
| io.github.whippetdb.db.api |
| Modifier and Type | Method and Description |
|---|---|
DbBuilder<K,V> |
DbBuilder.autocommit(boolean b)
Wheter to automatically commit each write in journaling mode.
|
DbBuilder<K,V> |
DbBuilder.autoflush(boolean b)
Whether to instantly persist each write.
|
DbBuilder<K,V> |
DbBuilder.create()
Creates the in-memory database.
|
DbBuilder<K,V> |
DbBuilder.create(java.lang.String path)
Creates the on-disk database over a specified file.
|
DbBuilder<K,V> |
DbBuilder.journalDurabilityVsSpeed(float v)
Controls the tradeoff between the average write speed and the durability of writes.
|
DbBuilder<K,V> |
DbBuilder.journaling(boolean b)
Enable journaling.
|
DbBuilder<K,V> |
DbBuilder.journalSizeVsSpeed(float v)
Chooses the max journal size from a meaningful range, in an exponential way,
where 0 corresponds to 2mb, 0.5 to 23mb, and 1 to 130mb.
|
DbBuilder<K,V> |
DbBuilder.open(java.lang.String path)
Opens the existing on-disk database.
|
DbBuilder<K,V> |
DbBuilder.openOrCreate(java.lang.String path)
If the file exists tries to open it, otherwise creates a new on-disk database.
|
DbBuilder<K,V> |
DbBuilder.speedVsCapacity(float v)
Controls the tradeoff between the capacity and speed.
|
DbBuilder<K,V> |
DbBuilder.synchronize(boolean b)
Whether to ensure a thread safety.
|