public class CopyOnReadDirectory
extends org.apache.lucene.store.FilterDirectory
| Modifier and Type | Field and Description |
|---|---|
long |
DELETE_MARGIN_MILLIS |
static String |
DELETE_MARGIN_MILLIS_NAME |
| Constructor and Description |
|---|
CopyOnReadDirectory(IndexCopier indexCopier,
org.apache.lucene.store.Directory remote,
org.apache.lucene.store.Directory local,
boolean prefetch,
String indexPath,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
On close file which are not present in remote are removed from local.
|
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context) |
void |
deleteFile(String name) |
org.apache.lucene.store.Directory |
getLocal() |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
String |
toString() |
public static final String DELETE_MARGIN_MILLIS_NAME
public final long DELETE_MARGIN_MILLIS
public CopyOnReadDirectory(IndexCopier indexCopier, org.apache.lucene.store.Directory remote, org.apache.lucene.store.Directory local, boolean prefetch, String indexPath, Executor executor) throws IOException
IOExceptionpublic void deleteFile(String name) throws IOException
deleteFile 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 org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput in class org.apache.lucene.store.FilterDirectoryIOExceptionpublic org.apache.lucene.store.Directory getLocal()
public 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.