use of org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnWriteDirectory in project jackrabbit-oak by apache.
the class IndexCopier method wrapForWrite.
public Directory wrapForWrite(IndexDefinition definition, Directory remote, boolean reindexMode, String dirName) throws IOException {
Directory local = createLocalDirForIndexWriter(definition, dirName);
String indexPath = definition.getIndexPath();
checkIntegrity(indexPath, local, remote);
return new CopyOnWriteDirectory(this, remote, local, reindexMode, indexPath, executor);
}
Aggregations