Class MMapDirectory
File-based Directory implementation that uses
NOTE: memory mapping uses up a portion of the
virtual memory address space in your process equal to the
size of the file being mapped. Before using this class,
be sure your have plenty of virtual address space, e.g. by
using a 64 bit runtime, or a 32 bit runtime with indexes that are
guaranteed to fit within the address space.
On 32 bit platforms also consult MMapDirectory(DirectoryInfo, LockFactory, Int32)
if you have problems with mmap failing because of fragmented
address space. If you get an
NOTE: Accessing this class either directly or
indirectly from a thread while it's interrupted can close the
underlying channel immediately if at the same time the thread is
blocked on IO. The channel will remain closed and subsequent access
to MMapDirectory will throw a
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class MMapDirectory : FSDirectory
Constructors
Name | Description |
---|---|
MMapDirectory(DirectoryInfo) | Create a new MMapDirectory for the named location and NativeFSLockFactory. |
MMapDirectory(DirectoryInfo, LockFactory) | Create a new MMapDirectory for the named location. |
MMapDirectory(DirectoryInfo, LockFactory, Int32) | Create a new MMapDirectory for the named location, specifying the maximum chunk size used for memory mapping. |
MMapDirectory(String) | Create a new MMapDirectory for the named location and NativeFSLockFactory.
LUCENENET specific overload for convenience using string instead of |
MMapDirectory(String, LockFactory) | Create a new MMapDirectory for the named location.
LUCENENET specific overload for convenience using string instead of |
MMapDirectory(String, LockFactory, Int32) | Create a new MMapDirectory for the named location, specifying the maximum chunk size used for memory mapping.
LUCENENET specific overload for convenience using string instead of |
Fields
Name | Description |
---|---|
DEFAULT_MAX_BUFF | Default max chunk size. |
Properties
Name | Description |
---|---|
MaxChunkSize | Returns the current mmap chunk size. |
Methods
Name | Description |
---|---|
CreateSlicer(String, IOContext) | |
OpenInput(String, IOContext) | Creates an IndexInput for the file with the given name. |