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 Constructor Description ReadBytesDirectoryWrapper(Directory in)
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexOutput
createOutput(String name, IOContext context)
IndexOutput
createTempOutput(String prefix, String suffix, IOContext context)
Map<String,FixedBitSet>
getReadBytes()
Get information about which bytes have been read.ChecksumIndexInput
openChecksumInput(String name, IOContext context)
IndexInput
openInput(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 Detail
-
ReadBytesDirectoryWrapper
public ReadBytesDirectoryWrapper(Directory in)
Sole constructor.
-
-
Method Detail
-
getReadBytes
public Map<String,FixedBitSet> getReadBytes()
Get information about which bytes have been read.
-
openInput
public IndexInput openInput(String name, IOContext context) throws IOException
- Overrides:
openInput
in classFilterDirectory
- Throws:
IOException
-
openChecksumInput
public ChecksumIndexInput openChecksumInput(String name, IOContext context) throws IOException
- Overrides:
openChecksumInput
in classDirectory
- Throws:
IOException
-
createOutput
public IndexOutput createOutput(String name, IOContext context) throws IOException
- Overrides:
createOutput
in classFilterDirectory
- Throws:
IOException
-
createTempOutput
public IndexOutput createTempOutput(String prefix, String suffix, IOContext context) throws IOException
- Overrides:
createTempOutput
in classFilterDirectory
- Throws:
IOException
-
-