org.apache.solr.core
Class MMapDirectoryFactory

java.lang.Object
  extended by org.apache.solr.core.DirectoryFactory
      extended by 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:


Constructor Summary
MMapDirectoryFactory()
           
 
Method Summary
 void init(NamedList args)
           
 org.apache.lucene.store.Directory open(String path)
          Opens a Lucene directory
 
Methods inherited from class org.apache.solr.core.DirectoryFactory
exists
 
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

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.