Class NCacheDirectory
Base class for Directory implementations that store index files in NCache.
The locking implementation is by default NativeFSLockFactory, but can be changed by passing in a custom LockFactory instance.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class NCacheDirectory : BaseDirectory, IIdentifiableSurrogate, ISerializable
Constructors
Name | Description |
---|---|
NCacheDirectory(SerializationInfo, StreamingContext) |
Fields
Name | Description |
---|---|
DEFAULT_READ_CHUNK_SIZE | Default read chunk size: 8192 bytes (this is the size up to which the runtime does not allocate additional arrays while reading/writing) |
Properties
Name | Description |
---|---|
AllowPartialResutls | Set to false to return an overall failure if the request would produce partial results. Set to true, which will allow partial results in the case of partial cluster. |
Methods
Name | Description |
---|---|
ClearLock(String) | |
CreateOutput(String, IOContext) | Creates an IndexOutput for the file with the given name. |
DeleteFile(String) | Removes an existing file in the directory. |
DeleteIndex(String) | |
Deserialize(CompactReader) | |
Dispose() | |
Dispose(Boolean) | |
FileExists(String) | Returns true iff a file with the given name exists. |
FileLength(String) | Returns the length in bytes of a file in the directory. |
GetLockID() | |
GetObjectData(SerializationInfo, StreamingContext) | |
ListAll() | Lists all files (not subdirectories) in the directory. |
Open(String, String) | Creates and returns an NCache Directory, an implementation of BaseDirectory, which can be used for index writing and reading |
Open(String, String, LockFactory) | Just like |
OpenInput(String, IOContext) | |
Serialize(CompactWriter) | |
SetLockFactory(LockFactory) | |
Sync(ICollection<String>) | |
ToString() | For debug output. |