Package org.apache.lucene.tests.index
Class BaseIndexFileFormatTestCase.FileTrackingDirectoryWrapper
java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.apache.lucene.tests.index.BaseIndexFileFormatTestCase.FileTrackingDirectoryWrapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
BaseIndexFileFormatTestCase
protected static class BaseIndexFileFormatTestCase.FileTrackingDirectoryWrapper
extends FilterDirectory
A directory that tracks created files that haven't been deleted.
-
Field Summary
Fields inherited from class org.apache.lucene.store.FilterDirectory
in
-
Method Summary
Modifier and TypeMethodDescriptioncreateOutput
(String name, IOContext context) void
deleteFile
(String name) getFiles()
Get the set of created files.void
Methods inherited from class org.apache.lucene.store.FilterDirectory
close, createTempOutput, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, sync, syncMetaData, toString, unwrap
Methods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
Method Details
-
getFiles
Get the set of created files. -
createOutput
- Overrides:
createOutput
in classFilterDirectory
- Throws:
IOException
-
rename
- Overrides:
rename
in classFilterDirectory
- Throws:
IOException
-
deleteFile
- Overrides:
deleteFile
in classFilterDirectory
- Throws:
IOException
-