public final class RawDirectoryWrapper extends BaseDirectoryWrapper
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.
isOpenin| Constructor and Description |
|---|
RawDirectoryWrapper(Directory delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(Directory from,
java.lang.String src,
java.lang.String dest,
IOContext context)
Copies an existing
src file from directory from
to a non-existent file dest in this directory. |
protected void |
ensureOpen()
Ensures this directory is still open.
|
ChecksumIndexInput |
openChecksumInput(java.lang.String name,
IOContext context)
Opens a checksum-computing stream for reading an existing file.
|
close, getCheckIndexOnClose, getCrossCheckTermVectorsOnClose, isOpen, setCheckIndexOnClose, setCrossCheckTermVectorsOnClosecreateOutput, createTempOutput, deleteFile, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, rename, sync, syncMetaData, toString, unwrappublic RawDirectoryWrapper(Directory delegate)
public void copyFrom(Directory from, java.lang.String src, java.lang.String dest, IOContext context) throws java.io.IOException
Directorysrc file from directory from
to a non-existent file dest in this directory.public ChecksumIndexInput openChecksumInput(java.lang.String name, IOContext context) throws java.io.IOException
DirectoryNoSuchFileException or FileNotFoundException
if name points to a non-existing file.openChecksumInput in class Directoryname - the name of an existing file.java.io.IOException - in case of I/O errorprotected void ensureOpen()
throws AlreadyClosedException
DirectoryensureOpen in class DirectoryAlreadyClosedException - if this directory is closed.Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.