Constructor RAMDirectory
RAMDirectory()
Constructs an empty Directory.
Declaration
public RAMDirectory()
RAMDirectory(Directory)
Creates a new RAMDirectory
instance from a different
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 RAMDirectory
instance is fully
independent from the original Directory
(it is a
complete copy). Any subsequent changes to the
original Directory
will not be visible in the
RAMDirectory
instance.
Declaration
public RAMDirectory(Directory dir)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | a |