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
IOException
public String[] listAll() throws IOException
listAll
in class org.apache.lucene.store.FilterDirectory
IOException
public boolean fileExists(String name) throws IOException
fileExists
in class org.apache.lucene.store.FilterDirectory
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class org.apache.lucene.store.FilterDirectory
IOException
public long fileLength(String name) throws IOException
fileLength
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 void sync(Collection<String> names) throws IOException
sync
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 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.