public abstract class EphemeralDirectoryFactory extends CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
DirectoryFactory.DirContext
byDirectoryCache, byPathCache, closeListeners, removeEntries
coreContainer, dataHomePath, INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE, LOCK_TYPE_HDFS, LOCK_TYPE_NATIVE, LOCK_TYPE_NONE, LOCK_TYPE_SIMPLE, LOCK_TYPE_SINGLE
Constructor and Description |
---|
EphemeralDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupOldIndexDirectories(String dataDirPath,
String currentIndexDirPath,
boolean reload) |
boolean |
exists(String path)
Returns true if a Directory exists for a given path in the underlying (stable) storage and
contains at least one file.
|
boolean |
isAbsolute(String path) |
boolean |
isPersistent() |
void |
remove(Directory dir)
Removes the Directory's persistent storage.
|
void |
remove(String path)
This remove is special in that it may be called even after
the factory has been closed.
|
addCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, getPath, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
create, createLockFactory, empty, getBaseDir, getDataHome, initCoreContainer, isSharedStorage, move, renameWithOverwrite, searchersReserveCommitPoints, size, size, sizeOf, sizeOfDirectory
public boolean exists(String path) throws IOException
DirectoryFactory
Directory
Object as returned by a previous call to the
DirectoryFactory.get(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext, java.lang.String)
method (on the specified path
) is not enough to cause this method to return
true. Some prior user of that Directory must have written & synced at least one file to that
Directory (and at least one file must still exist)exists
in class CachingDirectoryFactory
IOException
- If there is a low-level I/O error.public boolean isPersistent()
isPersistent
in class DirectoryFactory
public boolean isAbsolute(String path)
isAbsolute
in class DirectoryFactory
path
- the path to checkpublic void remove(Directory dir) throws IOException
DirectoryFactory
remove
in class CachingDirectoryFactory
IOException
- If there is a low-level I/O error.public void remove(String path) throws IOException
DirectoryFactory
remove
in class CachingDirectoryFactory
path
- to removeIOException
- If there is a low-level I/O error.public void cleanupOldIndexDirectories(String dataDirPath, String currentIndexDirPath, boolean reload)
cleanupOldIndexDirectories
in class DirectoryFactory
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.