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
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public CreateSlicer ( string name, IOContext context ) : IndexInputSlicer
name string
context IOContext
Résultat IndexInputSlicer

OpenInput() public méthode

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

SimpleFSDirectory() public méthode

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
Résultat System

SimpleFSDirectory() public méthode

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 /// ();
Résultat System