Class MMapDirectoryFactory

  • All Implemented Interfaces:
    Closeable, AutoCloseable, NamedListInitializedPlugin

    public class MMapDirectoryFactory
    extends StandardDirectoryFactory
    Directly provide MMapDirectory instead of relying on FSDirectory.open(java.nio.file.Path).

    Can set the following parameters:

    • unmap -- See MMapDirectory.setUseUnmap(boolean)
    • preload -- See MMapDirectory.setPreload(boolean)
    • maxChunkSize -- The Max chunk size. See MMapDirectory(Path, LockFactory, long)
    • Constructor Detail

      • MMapDirectoryFactory

        public MMapDirectoryFactory()