C# Class 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
Inheritance: Lucene.Net.Store.BaseDirectory
Show file Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
GetDirectory ( string name ) : Lucene.Net.Store.Directory

Method Details

CreateOutput() public method

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

CreateSlicer() public method

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

DeleteFile() public method

public DeleteFile ( string name ) : void
name string
return void

Dispose() public method

public Dispose ( ) : void
return void

FileExists() public method

public FileExists ( string name ) : bool
name string
return bool

FileLength() public method

public FileLength ( string name ) : long
name string
return long

FileSwitchDirectory() public method

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
return System.Collections.Generic

GetExtension() public static method

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

ListAll() public method

public ListAll ( ) : string[]
return string[]

OpenInput() public method

public OpenInput ( string name, IOContext context ) : IndexInput
name string
context IOContext
return IndexInput

Sync() public method

public Sync ( ICollection names ) : void
names ICollection
return void