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.StandardDirectoryFactory
              extended by org.apache.solr.core.RAMDirectoryFactory
All Implemented Interfaces:
Closeable, NamedListInitializedPlugin

public class RAMDirectoryFactory
extends StandardDirectoryFactory

Factory to instantiate RAMDirectory


Field Summary
 
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory
byDirectoryCache, byPathCache
 
Constructor Summary
RAMDirectoryFactory()
           
 
Method Summary
protected  Directory create(String path)
          Creates a new Directory for a given path.
 boolean exists(String path)
          Returns true if a Directory exists for a given path.
 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
close, get, get, incRef, init, release
 
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)
                    throws IOException
Description copied from class: DirectoryFactory
Creates a new Directory for a given path.

Overrides:
create in class StandardDirectoryFactory
Throws:
IOException

exists

public boolean exists(String path)
Description copied from class: DirectoryFactory
Returns true if a Directory exists for a given path.

Overrides:
exists in class CachingDirectoryFactory


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