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) voiddeleteFile(String name) getFiles()Get the set of created files.voidMethods inherited from class org.apache.lucene.store.FilterDirectory
close, createTempOutput, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, sync, syncMetaData, toString, unwrapMethods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
Method Details
-
getFiles
Get the set of created files. -
createOutput
- Overrides:
createOutputin classFilterDirectory- Throws:
IOException
-
rename
- Overrides:
renamein classFilterDirectory- Throws:
IOException
-
deleteFile
- Overrides:
deleteFilein classFilterDirectory- Throws:
IOException
-