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
-
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, IOContext context) Methods inherited from class org.apache.lucene.store.FilterDirectory
close, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, rename, sync, syncMetaData, toString, unwrap
Methods 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:
openInput
in classFilterDirectory
- Throws:
IOException
-
openChecksumInput
- Overrides:
openChecksumInput
in classDirectory
- Throws:
IOException
-
createOutput
- Overrides:
createOutput
in classFilterDirectory
- Throws:
IOException
-
createTempOutput
public IndexOutput createTempOutput(String prefix, String suffix, IOContext context) throws IOException - Overrides:
createTempOutput
in classFilterDirectory
- Throws:
IOException
-