MMapDirectory

constructor(path: Path, lockFactory: LockFactory = FSLockFactory.default, maxChunkSize: Long = DEFAULT_MAX_CHUNK_SIZE)


constructor(path: Path, maxChunkSize: Long)

Create a new MMapDirectory for the named location and FSLockFactory.getDefault. The directory is created at the named location if it does not yet exist.

Parameters

path

the path of the directory

maxChunkSize

maximum chunk size (for default see .DEFAULT_MAX_CHUNK_SIZE) used for memory mapping.

Throws

IOException

if there is a low-level I/O error