Property | Type | Description | |
---|---|---|---|
StaleFiles | ISet |
||
directory |
Property | Type | Description |
---|
Method | Description | |
---|---|---|
CreateOutput ( string name, |
Creates an IndexOutput for the file with the given name.
|
|
DeleteFile ( string name ) : void |
Removes an existing file in the directory.
|
|
Dispose ( ) : void |
Closes the store to future operations.
|
|
FileExists ( string name ) : bool |
Returns true iff a file with the given name exists.
|
|
FileLength ( string name ) : long |
Returns the length in bytes of a file in the directory.
|
|
ListAll ( ) : string[] |
Lists all files (not subdirectories) in the directory.
|
|
ListAll ( |
Lists all files (not subdirectories) in the directory. this method never returns null (throws System.IO.IOException instead).
|
|
Open ( |
Creates an FSDirectory instance, trying to pick the best implementation given the current environment. The directory returned uses the NativeFSLockFactory. Currently this returns MMapDirectory for most Solaris and Windows 64-bit JREs, NIOFSDirectory for other non-Windows JREs, and SimpleFSDirectory for other JREs on Windows. It is highly recommended that you consult the implementation's documentation for your platform before using this method. NOTE: this method may suddenly change which implementation is returned from release to release, in the event that higher performance defaults become possible; if the precise implementation is important to your application, please instantiate it directly, instead. For optimal performance you should consider using MMapDirectory on 64 bit JVMs. See above
|
|
Open ( |
Just like #open(File), but allows you to also specify a custom LockFactory.
|
|
Sync ( ICollection |
||
ToString ( ) : string |
For debug output.
|
Method | Description | |
---|---|---|
EnsureCanWrite ( string name ) : void | ||
FSDirectory ( |
||
FSDirectory ( |
Create a new FSDirectory for the named location (ctor for subclasses).
|
|
Fsync ( String name, bool isDir = false ) : void |
|
|
OnIndexOutputClosed ( Lucene.Net.Store.FSIndexOutput io ) : void |
public CreateOutput ( string name, |
||
name | string | |
context | ||
return | Lucene.Net.Store.IndexOutput |
protected EnsureCanWrite ( string name ) : void | ||
name | string | |
return | void |
protected FSDirectory ( |
||
dir | ||
return | System |
protected FSDirectory ( |
||
path | the path of the directory | |
lockFactory | Lucene.Net.Store.LockFactory | the lock factory to use, or null for the default
/// ( |
return | System |
protected Fsync ( String name, bool isDir = false ) : void | ||
name | String | |
isDir | bool | |
return | void |
public static ListAll ( |
||
dir | ||
return | string[] |
protected OnIndexOutputClosed ( Lucene.Net.Store.FSIndexOutput io ) : void | ||
io | Lucene.Net.Store.FSIndexOutput | |
return | void |
public static Open ( |
||
path | ||
return |
public static Open ( |
||
path | ||
lockFactory | Lucene.Net.Store.LockFactory | |
return |