public class MockDirectoryFactory
extends org.apache.solr.core.EphemeralDirectoryFactory
LuceneTestCase.newDirectory()
Modifier and Type | Field and Description |
---|---|
static String |
SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE |
Constructor and Description |
---|
MockDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.store.Directory |
create(String path,
org.apache.lucene.store.LockFactory lockFactory,
org.apache.solr.core.DirectoryFactory.DirContext dirContext) |
protected org.apache.lucene.store.LockFactory |
createLockFactory(String rawLockType) |
boolean |
isAbsolute(String path) |
cleanupOldIndexDirectories, exists, isPersistent, remove, remove
addCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, getPath, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
public static final String SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE
protected org.apache.lucene.store.LockFactory createLockFactory(String rawLockType) throws IOException
createLockFactory
in class org.apache.solr.core.DirectoryFactory
IOException
protected org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory, org.apache.solr.core.DirectoryFactory.DirContext dirContext) throws IOException
create
in class org.apache.solr.core.DirectoryFactory
IOException
public boolean isAbsolute(String path)
isAbsolute
in class org.apache.solr.core.EphemeralDirectoryFactory
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.