public class CopyOnReadDirectory
extends org.apache.lucene.store.FilterDirectory
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 CopyOnReadDirectory(IndexCopier indexCopier, org.apache.lucene.store.Directory remote, org.apache.lucene.store.Directory local, boolean prefetch, String indexPath, Executor executor) throws IOException
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class org.apache.lucene.store.FilterDirectory
IOException
public org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput
in class org.apache.lucene.store.FilterDirectory
IOException
public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput
in class org.apache.lucene.store.FilterDirectory
IOException
public org.apache.lucene.store.Directory getLocal()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.lucene.store.FilterDirectory
IOException
public String toString()
toString
in class org.apache.lucene.store.FilterDirectory
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.