Creates a new
CopyC#
RAMDirectory
instance from a different
CopyC#
Directory
implementation. This can be used to load a disk-based index into memory.

This should be used only with indices that can fit into memory.

Note that the resulting

CopyC#
RAMDirectory
instance is fully independent from the original
CopyC#
Directory
(it is a complete copy). Any subsequent changes to the original
CopyC#
Directory
will not be visible in the
CopyC#
RAMDirectory
instance.

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public RAMDirectory(
	Directory dir
)
Visual Basic
Public Sub New ( _
	dir As Directory _
)
Visual C++
public:
RAMDirectory(
	Directory^ dir
)

Parameters

dir
Type: Lucene.Net.Store..::..Directory
a
CopyC#
Directory
value

Exceptions

ExceptionCondition
[!:IOException]if an error occurs

See Also