org.apache.solr.core
Class MMapDirectoryFactory
java.lang.Object
org.apache.solr.core.DirectoryFactory
org.apache.solr.core.CachingDirectoryFactory
org.apache.solr.core.StandardDirectoryFactory
org.apache.solr.core.MMapDirectoryFactory
- All Implemented Interfaces:
- Closeable, NamedListInitializedPlugin
public class MMapDirectoryFactory
- extends StandardDirectoryFactory
Directly provide MMapDirectory instead of relying on FSDirectory.open(java.io.File)
.
Can set the following parameters:
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory |
addCloseListener, close, doneWithDirectory, get, getLivePaths, incRef, release, remove, remove, remove, remove, stripTrailingSlash |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MMapDirectoryFactory
public MMapDirectoryFactory()
init
public void init(NamedList args)
- Specified by:
init
in interface NamedListInitializedPlugin
- Overrides:
init
in class CachingDirectoryFactory
create
protected Directory create(String path,
DirectoryFactory.DirContext dirContext)
throws IOException
- Description copied from class:
DirectoryFactory
- Creates a new Directory for a given path.
- Overrides:
create
in class StandardDirectoryFactory
- Throws:
IOException
- If there is a low-level I/O error.
isAbsolute
public boolean isAbsolute(String path)
- Overrides:
isAbsolute
in class StandardDirectoryFactory
- Parameters:
path
- the path to check
- Returns:
- true if absolute, as in not relative
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.