C# Class Lucene.Net.Store.SimpleFSDirectory

A straightforward implementation of {@link FSDirectory} using java.io.RandomAccessFile. However, this class has poor concurrent performance (multiple threads will bottleneck) as it synchronizes when multiple threads read from the same file. It's usually better to use {@link NIOFSDirectory} or {@link MMapDirectory} instead.
Inheritance: FSDirectory
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CreateSlicer ( string name, IOContext context ) : IndexInputSlicer
OpenInput ( string name, IOContext context ) : IndexInput

Creates an IndexInput for the file with the given name.

SimpleFSDirectory ( DirectoryInfo path ) : System

Create a new SimpleFSDirectory for the named location and NativeFSLockFactory.

SimpleFSDirectory ( DirectoryInfo path, Lucene.Net.Store.LockFactory lockFactory ) : System

Create a new SimpleFSDirectory for the named location.

Method Details

CreateSlicer() public method

public CreateSlicer ( string name, IOContext context ) : IndexInputSlicer
name string
context IOContext
return IndexInputSlicer

OpenInput() public method

Creates an IndexInput for the file with the given name.
public OpenInput ( string name, IOContext context ) : IndexInput
name string
context IOContext
return IndexInput

SimpleFSDirectory() public method

Create a new SimpleFSDirectory for the named location and NativeFSLockFactory.
if there is a low-level I/O error
public SimpleFSDirectory ( DirectoryInfo path ) : System
path DirectoryInfo the path of the directory
return System

SimpleFSDirectory() public method

Create a new SimpleFSDirectory for the named location.
if there is a low-level I/O error
public SimpleFSDirectory ( DirectoryInfo path, Lucene.Net.Store.LockFactory lockFactory ) : System
path DirectoryInfo the path of the directory
lockFactory Lucene.Net.Store.LockFactory the lock factory to use, or null for the default /// ();
return System