org.apache.solr.core
Class MMapDirectoryFactory
java.lang.Object
org.apache.solr.core.DirectoryFactory
org.apache.solr.core.MMapDirectoryFactory
- All Implemented Interfaces:
- NamedListInitializedPlugin
public class MMapDirectoryFactory
- extends DirectoryFactory
Directly provide MMapDirectory instead of relying on FSDirectory.open(java.io.File)
Can set the following parameters:
- unmap -- See
MMapDirectory.setUseUnmap(boolean)
- maxChunkSize -- The Max chunk size. See
MMapDirectory.setMaxChunkSize(int)
Method Summary |
void |
init(NamedList args)
|
org.apache.lucene.store.Directory |
open(String path)
Opens a Lucene directory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MMapDirectoryFactory
public MMapDirectoryFactory()
open
public org.apache.lucene.store.Directory open(String path)
throws IOException
- Description copied from class:
DirectoryFactory
- Opens a Lucene directory
- Specified by:
open
in class DirectoryFactory
- Throws:
IOException
init
public void init(NamedList args)
- Specified by:
init
in interface NamedListInitializedPlugin
- Overrides:
init
in class DirectoryFactory
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.