org.apache.solr.core
Class RAMDirectoryFactory

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

public class RAMDirectoryFactory
extends EphemeralDirectoryFactory

Factory to instantiate RAMDirectory


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.solr.core.CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
 
Nested classes/interfaces inherited from class org.apache.solr.core.DirectoryFactory
DirectoryFactory.DirContext
 
Field Summary
 
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory
byDirectoryCache, byPathCache, closeListeners, removeEntries
 
Fields inherited from class org.apache.solr.core.DirectoryFactory
IOCONTEXT_NO_CACHE
 
Constructor Summary
RAMDirectoryFactory()
           
 
Method Summary
protected  Directory create(String path, DirectoryFactory.DirContext dirContext)
          Creates a new Directory for a given path.
 
Methods inherited from class org.apache.solr.core.EphemeralDirectoryFactory
exists, isAbsolute, isPersistent
 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
addCloseListener, close, doneWithDirectory, get, get, getPaths, incRef, init, normalize, release, remove, remove, remove, remove, removeDirectory
 
Methods inherited from class org.apache.solr.core.DirectoryFactory
empty, move, sizeOf, sizeOfDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAMDirectoryFactory

public RAMDirectoryFactory()
Method Detail

create

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

Specified by:
create in class CachingDirectoryFactory
Throws:
IOException - If there is a low-level I/O error.


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