Package org.apache.lucene.tests.index
Class BaseIndexFileFormatTestCase.ReadBytesDirectoryWrapper
java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.apache.lucene.tests.index.BaseIndexFileFormatTestCase.ReadBytesDirectoryWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
BaseIndexFileFormatTestCase
protected static class BaseIndexFileFormatTestCase.ReadBytesDirectoryWrapper
extends FilterDirectory
A directory that tracks read bytes.
-
Field Summary
Fields inherited from class org.apache.lucene.store.FilterDirectory
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOutput(String name, IOContext context) createTempOutput(String prefix, String suffix, IOContext context) Get information about which bytes have been read.openChecksumInput(String name) Methods inherited from class org.apache.lucene.store.FilterDirectory
close, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, rename, sync, syncMetaData, toString, unwrapMethods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName
-
Constructor Details
-
ReadBytesDirectoryWrapper
Sole constructor.
-
-
Method Details
-
getReadBytes
Get information about which bytes have been read. -
openInput
- Overrides:
openInputin classFilterDirectory- Throws:
IOException
-
openChecksumInput
- Overrides:
openChecksumInputin classDirectory- Throws:
IOException
-
createOutput
- Overrides:
createOutputin classFilterDirectory- Throws:
IOException
-
createTempOutput
public IndexOutput createTempOutput(String prefix, String suffix, IOContext context) throws IOException - Overrides:
createTempOutputin classFilterDirectory- Throws:
IOException
-