org.apache.solr.core
Class EphemeralDirectoryFactory

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

public abstract class EphemeralDirectoryFactory
extends CachingDirectoryFactory

Directory provider for implementations that do not persist over reboots.


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
EphemeralDirectoryFactory()
           
 
Method Summary
 boolean exists(String path)
          Returns true if a Directory exists for a given path.
 boolean isAbsolute(String path)
           
 boolean isPersistent()
           
 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
addCloseListener, close, create, 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

EphemeralDirectoryFactory

public EphemeralDirectoryFactory()
Method Detail

exists

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

Overrides:
exists in class CachingDirectoryFactory
Throws:
IOException - If there is a low-level I/O error.

isPersistent

public boolean isPersistent()
Specified by:
isPersistent in class DirectoryFactory
Returns:
true if data is kept after close.

isAbsolute

public boolean isAbsolute(String path)
Overrides:
isAbsolute in class DirectoryFactory
Parameters:
path - the path to check
Returns:
true if absolute, as in not relative


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