org.apache.solr.core
Class MMapDirectoryFactory

java.lang.Object
  extended by org.apache.solr.core.DirectoryFactory
      extended by org.apache.solr.core.CachingDirectoryFactory
          extended by org.apache.solr.core.MMapDirectoryFactory
All Implemented Interfaces:
Closeable, NamedListInitializedPlugin

public class MMapDirectoryFactory
extends CachingDirectoryFactory

Directly provide MMapDirectory instead of relying on FSDirectory.open(java.io.File) Can set the following parameters:


Field Summary
 
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory
byDirectoryCache, byPathCache
 
Constructor Summary
MMapDirectoryFactory()
           
 
Method Summary
protected  Directory create(String path)
          Creates a new Directory for a given path.
 void init(NamedList args)
           
 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
close, exists, get, get, incRef, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMapDirectoryFactory

public MMapDirectoryFactory()
Method Detail

init

public void init(NamedList args)
Specified by:
init in interface NamedListInitializedPlugin
Overrides:
init in class CachingDirectoryFactory

create

protected Directory create(String path)
                    throws IOException
Description copied from class: DirectoryFactory
Creates a new Directory for a given path.

Specified by:
create in class CachingDirectoryFactory
Throws:
IOException


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.