C# 클래스 Lucene.Net.Store.FileSwitchDirectory

Expert: A Directory instance that switches files between two other Directory instances.

Files with the specified extensions are placed in the primary directory; others are placed in the secondary directory. The provided Set must not change once passed to this class, and must allow multiple threads to call contains at once.

@lucene.experimental
상속: Lucene.Net.Store.BaseDirectory
파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
CreateOutput ( string name, IOContext context ) : Lucene.Net.Store.IndexOutput
CreateSlicer ( string name, IOContext context ) : IndexInputSlicer
DeleteFile ( string name ) : void
Dispose ( ) : void
FileExists ( string name ) : bool
FileLength ( string name ) : long
FileSwitchDirectory ( ISet primaryExtensions, Lucene.Net.Store.Directory primaryDir, Lucene.Net.Store.Directory secondaryDir, bool doClose ) : System.Collections.Generic
GetExtension ( string name ) : string

Utility method to return a file's extension.

ListAll ( ) : string[]
OpenInput ( string name, IOContext context ) : IndexInput
Sync ( ICollection names ) : void

비공개 메소드들

메소드 설명
GetDirectory ( string name ) : Lucene.Net.Store.Directory

메소드 상세

CreateOutput() 공개 메소드

public CreateOutput ( string name, IOContext context ) : Lucene.Net.Store.IndexOutput
name string
context IOContext
리턴 Lucene.Net.Store.IndexOutput

CreateSlicer() 공개 메소드

public CreateSlicer ( string name, IOContext context ) : IndexInputSlicer
name string
context IOContext
리턴 IndexInputSlicer

DeleteFile() 공개 메소드

public DeleteFile ( string name ) : void
name string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FileExists() 공개 메소드

public FileExists ( string name ) : bool
name string
리턴 bool

FileLength() 공개 메소드

public FileLength ( string name ) : long
name string
리턴 long

FileSwitchDirectory() 공개 메소드

public FileSwitchDirectory ( ISet primaryExtensions, Lucene.Net.Store.Directory primaryDir, Lucene.Net.Store.Directory secondaryDir, bool doClose ) : System.Collections.Generic
primaryExtensions ISet
primaryDir Lucene.Net.Store.Directory
secondaryDir Lucene.Net.Store.Directory
doClose bool
리턴 System.Collections.Generic

GetExtension() 공개 정적인 메소드

Utility method to return a file's extension.
public static GetExtension ( string name ) : string
name string
리턴 string

ListAll() 공개 메소드

public ListAll ( ) : string[]
리턴 string[]

OpenInput() 공개 메소드

public OpenInput ( string name, IOContext context ) : IndexInput
name string
context IOContext
리턴 IndexInput

Sync() 공개 메소드

public Sync ( ICollection names ) : void
names ICollection
리턴 void