Overload List

  NameDescription
Public methodStatic memberOpen(DirectoryInfo)
Creates an FSDirectory instance, trying to pick the best implementation given the current environment. The directory returned uses the {@link NativeFSLockFactory}.

Currently this returns {@link SimpleFSDirectory} as NIOFSDirectory is currently not supported.

NOTE: this method may suddenly change which implementation is returned from release to release, in the event that higher performance defaults become possible; if the precise implementation is important to your application, please instantiate it directly, instead. On 64 bit systems, it may also good to return {@link MMapDirectory}, but this is disabled because of officially missing unmap support in Java. For optimal performance you should consider using this implementation on 64 bit JVMs.

See above

Public methodStatic memberOpen(FileInfo) Obsolete.
Creates an FSDirectory instance, trying to pick the best implementation given the current environment. The directory returned uses the {@link NativeFSLockFactory}.

Currently this returns {@link SimpleFSDirectory} as NIOFSDirectory is currently not supported.

Currently this returns {@link SimpleFSDirectory} as NIOFSDirectory is currently not supported.

NOTE: this method may suddenly change which implementation is returned from release to release, in the event that higher performance defaults become possible; if the precise implementation is important to your application, please instantiate it directly, instead. On 64 bit systems, it may also good to return {@link MMapDirectory}, but this is disabled because of officially missing unmap support in Java. For optimal performance you should consider using this implementation on 64 bit JVMs.

See above

Public methodStatic memberOpen(DirectoryInfo, LockFactory)
Just like {@link #Open(File)}, but allows you to also specify a custom {@link LockFactory}.

See Also