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() |
ensureOpen
protected final Directory delegate
public BaseDirectoryWrapper(Directory delegate)
public void close() throws IOException
close
in interface Closeable
close
in class Directory
IOException
public 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 Directory
IOException
public boolean fileExists(String name) throws IOException
fileExists
in class Directory
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class Directory
IOException
public long fileLength(String name) throws IOException
fileLength
in class Directory
IOException
public IndexOutput createOutput(String name, IOContext context) throws IOException
createOutput
in class Directory
IOException
public void sync(Collection<String> names) throws IOException
sync
in class Directory
IOException
public IndexInput openInput(String name, IOContext context) throws IOException
openInput
in class Directory
IOException
public void clearLock(String name) throws IOException
clearLock
in class Directory
IOException
public void setLockFactory(LockFactory lockFactory) throws IOException
setLockFactory
in class Directory
IOException
public LockFactory getLockFactory()
getLockFactory
in class Directory
public void copy(Directory to, String src, String dest, IOContext context) throws IOException
copy
in class Directory
IOException
public Directory.IndexInputSlicer createSlicer(String name, IOContext context) throws IOException
createSlicer
in class Directory
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.