![]() |
Page History
...
MMapDirectories offer an opportunity to take advantage of modern operating system memory management. In effect we set aside resources to insure that Lucene has enough memory available at all times. This is similar to what happens when you set up databases and other applications that need a minimum of resources in order to function properly. In essence we have a contract to get transparent memory resources as a virtual memory bank of RAM and Storage. Because we don't compete with other resources for this memory we are able to process indexing and search tasks more efficiently.
Code Block | ||||
---|---|---|---|---|
| ||||
//These classes directly access the current Lucene directory object FSDirectory which will be updated to MMapDirectory
org.lexevs.dao.index.lucenesupport.DefaultLuceneDirectoryCreator
org.lexevs.dao.index.lucenesupport.LuceneDirectoryFactory.NamedDirectory
//These classes also participate in the creation and deletion of a directory on a higher level in the code path
org.lexevs.dao.index.lucenesupport.LuceneDirectoryFactory
org.lexevs.dao.index.indexregistry.SingleIndexRegistry |
Changing the Relational Representation in Lucene
...