public class BaseDirectoryWrapper extends Directory
Directory.IndexInputSlicer| Modifier and Type | Field and Description |
|---|---|
protected Directory |
delegate
our in directory
|
isOpen, lockFactory| Constructor and Description |
|---|
BaseDirectoryWrapper(Directory delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearLock(String name) |
void |
close() |
void |
copy(Directory to,
String src,
String dest,
IOContext context) |
IndexOutput |
createOutput(String name,
IOContext context) |
Directory.IndexInputSlicer |
createSlicer(String name,
IOContext context) |
void |
deleteFile(String name) |
boolean |
fileExists(String name) |
long |
fileLength(String name) |
boolean |
getCheckIndexOnClose() |
boolean |
getCrossCheckTermVectorsOnClose() |
LockFactory |
getLockFactory() |
String |
getLockID() |
protected boolean |
indexPossiblyExists()
don't rely upon DirectoryReader.fileExists to determine if we should
checkIndex() or not.
|
boolean |
isOpen() |
String[] |
listAll() |
Lock |
makeLock(String name) |
IndexInput |
openInput(String name,
IOContext context) |
void |
setCheckIndexOnClose(boolean value)
Set whether or not checkindex should be run
on close
|
void |
setCrossCheckTermVectorsOnClose(boolean value) |
void |
setLockFactory(LockFactory lockFactory) |
void |
sync(Collection<String> names) |
String |
toString() |
ensureOpenprotected final Directory delegate
public BaseDirectoryWrapper(Directory delegate)
public void close()
throws IOException
close in interface Closeableclose in class DirectoryIOExceptionpublic boolean isOpen()
protected boolean indexPossiblyExists()
public void setCheckIndexOnClose(boolean value)
public boolean getCheckIndexOnClose()
public void setCrossCheckTermVectorsOnClose(boolean value)
public boolean getCrossCheckTermVectorsOnClose()
public String[] listAll() throws IOException
listAll in class DirectoryIOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in class DirectoryIOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in class DirectoryIOExceptionpublic long fileLength(String name) throws IOException
fileLength in class DirectoryIOExceptionpublic IndexOutput createOutput(String name, IOContext context) throws IOException
createOutput in class DirectoryIOExceptionpublic void sync(Collection<String> names) throws IOException
sync in class DirectoryIOExceptionpublic IndexInput openInput(String name, IOContext context) throws IOException
openInput in class DirectoryIOExceptionpublic void clearLock(String name) throws IOException
clearLock in class DirectoryIOExceptionpublic void setLockFactory(LockFactory lockFactory) throws IOException
setLockFactory in class DirectoryIOExceptionpublic LockFactory getLockFactory()
getLockFactory in class Directorypublic void copy(Directory to, String src, String dest, IOContext context) throws IOException
copy in class DirectoryIOExceptionpublic Directory.IndexInputSlicer createSlicer(String name, IOContext context) throws IOException
createSlicer in class DirectoryIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.