public class CopyOnWriteDirectory
extends org.apache.lucene.store.FilterDirectory
| Constructor and Description |
|---|
CopyOnWriteDirectory(IndexCopier indexCopier,
org.apache.lucene.store.Directory remote,
org.apache.lucene.store.Directory local,
boolean reindexMode,
String indexPath,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context) |
void |
deleteFile(String name) |
boolean |
fileExists(String name) |
long |
fileLength(String name) |
String[] |
listAll() |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
void |
sync(Collection<String> names) |
String |
toString() |
public CopyOnWriteDirectory(IndexCopier indexCopier, org.apache.lucene.store.Directory remote, org.apache.lucene.store.Directory local, boolean reindexMode, String indexPath, Executor executor) throws IOException
IOExceptionpublic String[] listAll() throws IOException
listAll in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic long fileLength(String name) throws IOException
fileLength in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic void sync(Collection<String> names) throws IOException
sync in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic String toString()
toString in class org.apache.lucene.store.FilterDirectoryCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.