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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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