LocalStorageFactory

@Serializable
@SerialName(value = "!Local")
data class LocalStorageFactory(val path: Path, var maxCacheEntries: Long = 1024, var maxCacheBytes: Long = 536870912) : Storage.Factory

Implementation for the storage module that persists data to the local file system, under the path directory.

Example usage, as part of a node config:

Xtdb.openNode {
localStorage(path = Paths.get("test-path")) {
maxCacheEntries = 1024,
maxCacheBytes = 536870912
},
...
}

Constructors

Link copied to clipboard
constructor(path: Path, maxCacheEntries: Long = 1024, maxCacheBytes: Long = 536870912)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val path: Path

The directory path where data will be stored.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun openStorage(allocator: BufferAllocator): IBufferPool