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 writerIOExceptionpublic static org.neo4j.graphdb.ResourceIterator<File> forIndex(File indexFolder, org.apache.lucene.store.Directory directory) throws IOException
indexFolder - index location folderdirectory - index directoryIOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.