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
Namespace: Lucene.Net.StoreAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("Use the method that takes a DirectoryInfo, this will be removed in the 3.0 release")] public static FSDirectory Open( FileInfo path ) |
Visual Basic |
---|
<ObsoleteAttribute("Use the method that takes a DirectoryInfo, this will be removed in the 3.0 release")> _ Public Shared Function Open ( _ path As FileInfo _ ) As FSDirectory |
Visual C++ |
---|
[ObsoleteAttribute(L"Use the method that takes a DirectoryInfo, this will be removed in the 3.0 release")] public: static FSDirectory^ Open( FileInfo^ path ) |
Parameters
- path
- Type: System.IO..::..FileInfo
[Missing <param name="path"/> documentation for "M:Lucene.Net.Store.FSDirectory.Open(System.IO.FileInfo)"]
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Store.FSDirectory.Open(System.IO.FileInfo)"]