Package | Description |
---|---|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
void |
MockDirectoryWrapper.Failure.eval(MockDirectoryWrapper dir)
eval is called on the first write of every new file.
|
Constructor and Description |
---|
MockIndexInputWrapper(MockDirectoryWrapper dir,
String name,
IndexInput delegate)
Construct an empty output buffer.
|
MockIndexOutputWrapper(MockDirectoryWrapper dir,
IndexOutput delegate,
String name)
Construct an empty output buffer.
|
MockLockFactoryWrapper(MockDirectoryWrapper dir,
LockFactory delegate) |
Modifier and Type | Field and Description |
---|---|
protected static Map<MockDirectoryWrapper,StackTraceElement[]> |
LuceneTestCase.stores |
Modifier and Type | Method and Description |
---|---|
static MockDirectoryWrapper |
LuceneTestCase.newDirectory()
Returns a new Directory instance.
|
static MockDirectoryWrapper |
LuceneTestCase.newDirectory(Directory d)
Returns a new Directory instance, with contents copied from the
provided directory.
|
static MockDirectoryWrapper |
LuceneTestCase.newDirectory(Random r)
Returns a new Directory instance, using the specified random.
|
static MockDirectoryWrapper |
LuceneTestCase.newDirectory(Random r,
Directory d)
Returns a new Directory instance, using the specified random
with contents copied from the provided directory.
|
static MockDirectoryWrapper |
LuceneTestCase.newFSDirectory(File f)
Returns a new FSDirectory instance over the given file, which must be a folder.
|
static MockDirectoryWrapper |
LuceneTestCase.newFSDirectory(File f,
LockFactory lf)
Returns a new FSDirectory instance over the given file, which must be a folder.
|