public class LuceneIndexSnapshots extends Object
index commit
.
Applicable only to a single Lucene index partition.Constructor and Description |
---|
LuceneIndexSnapshots() |
Modifier and Type | Method and Description |
---|---|
static org.neo4j.graphdb.ResourceIterator<File> |
forIndex(File indexFolder,
org.apache.lucene.store.Directory directory)
Create index snapshot iterator for a read only index.
|
static org.neo4j.graphdb.ResourceIterator<File> |
forIndex(File indexFolder,
org.apache.lucene.index.IndexWriter indexWriter)
Create index snapshot iterator for a writable index.
|
public static org.neo4j.graphdb.ResourceIterator<File> forIndex(File indexFolder, org.apache.lucene.index.IndexWriter indexWriter) throws IOException
indexFolder
- index location folderindexWriter
- index writerIOException
public static org.neo4j.graphdb.ResourceIterator<File> forIndex(File indexFolder, org.apache.lucene.store.Directory directory) throws IOException
indexFolder
- index location folderdirectory
- index directoryIOException
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.