Overload List

  NameDescription
Public methodRAMDirectory()()()()
Constructs an empty {@link Directory}.
Public methodRAMDirectory(FileInfo) Obsolete.
Creates a new
CopyC#
RAMDirectory
instance from the {@link FSDirectory}.
Public methodRAMDirectory(String) Obsolete.
Creates a new
CopyC#
RAMDirectory
instance from the {@link FSDirectory}.
Public methodRAMDirectory(Directory)
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.

See Also