C# Класс 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.
Наследование: FSDirectory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CreateSlicer() публичный Метод

public CreateSlicer ( string name, IOContext context ) : IndexInputSlicer
name string
context IOContext
Результат IndexInputSlicer

OpenInput() публичный Метод

Creates an IndexInput for the file with the given name.
public OpenInput ( string name, IOContext context ) : IndexInput
name string
context IOContext
Результат IndexInput

SimpleFSDirectory() публичный Метод

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
Результат System

SimpleFSDirectory() публичный Метод

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 /// ();
Результат System