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.
isOpen
in
Constructor and Description |
---|
RawDirectoryWrapper(Directory delegate) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Directory from,
String src,
String dest,
IOContext context) |
protected void |
ensureOpen() |
ChecksumIndexInput |
openChecksumInput(String name,
IOContext context) |
close, getCheckIndexOnClose, getCrossCheckTermVectorsOnClose, isOpen, setCheckIndexOnClose, setCrossCheckTermVectorsOnClose
createOutput, createTempOutput, deleteFile, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, rename, sync, syncMetaData, toString, unwrap
getTempFileName
public RawDirectoryWrapper(Directory delegate)
public void copyFrom(Directory from, String src, String dest, IOContext context) throws IOException
copyFrom
in class Directory
IOException
public ChecksumIndexInput openChecksumInput(String name, IOContext context) throws IOException
openChecksumInput
in class Directory
IOException
protected void ensureOpen() throws AlreadyClosedException
ensureOpen
in class Directory
AlreadyClosedException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.