open

fun open(root: Path, alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT): Store

Opens a Store, automatically detecting the type based on the presence or absence of the main_file_cache.dat2 file.

Parameters

root

the store's root directory.

alloc

the ByteBufAllocator used to allocate buffers for groups read from the Store and for temporary internal use.

Throws

if an underlying I/O error occurs.