Package org.apache.lucene.tests.store
Class RawDirectoryWrapper
- java.lang.Object
-
- org.apache.lucene.store.Directory
-
- org.apache.lucene.store.FilterDirectory
-
- org.apache.lucene.tests.store.BaseDirectoryWrapper
-
- org.apache.lucene.tests.store.RawDirectoryWrapper
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class RawDirectoryWrapper extends BaseDirectoryWrapper
Delegates all operations, even optional ones, to the wrapped directory.This class is used if you want the most realistic testing, but still with a checkindex on close. If you want asserts and evil things, use MockDirectoryWrapper instead.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.tests.store.BaseDirectoryWrapper
isOpen
-
Fields inherited from class org.apache.lucene.store.FilterDirectory
in
-
-
Constructor Summary
Constructors Constructor Description RawDirectoryWrapper(Directory delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(Directory from, String src, String dest, IOContext context)ChecksumIndexInputopenChecksumInput(String name, IOContext context)-
Methods inherited from class org.apache.lucene.tests.store.BaseDirectoryWrapper
close, getCheckIndexOnClose, getCrossCheckTermVectorsOnClose, isOpen, setCheckIndexOnClose, setCrossCheckTermVectorsOnClose
-
Methods inherited from class org.apache.lucene.store.FilterDirectory
createOutput, createTempOutput, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, rename, sync, syncMetaData, toString, unwrap
-
Methods inherited from class org.apache.lucene.store.Directory
getTempFileName
-
-
-
-
Constructor Detail
-
RawDirectoryWrapper
public RawDirectoryWrapper(Directory delegate)
-
-
Method Detail
-
copyFrom
public void copyFrom(Directory from, String src, String dest, IOContext context) throws IOException
- Overrides:
copyFromin classDirectory- Throws:
IOException
-
openChecksumInput
public ChecksumIndexInput openChecksumInput(String name, IOContext context) throws IOException
- Overrides:
openChecksumInputin classDirectory- Throws:
IOException
-
-