public class LuceneIndexSnapshotFileIterator extends org.neo4j.helpers.collection.PrefetchingIterator<File> implements org.neo4j.graphdb.ResourceIterator<File>
snapshot.
Applicable only to a single Lucene index partition.
Internally uses SnapshotDeletionPolicy.snapshot() to create an IndexCommit that represents
consistent state of the index for a particular point in time.
Turns to be an empty iterator if index does not have any commits yet.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static org.neo4j.graphdb.ResourceIterator<File> |
forIndex(File indexFolder,
org.apache.lucene.index.IndexWriter indexWriter) |
hasNext, next, peek, removeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, next, removepublic static org.neo4j.graphdb.ResourceIterator<File> forIndex(File indexFolder, org.apache.lucene.index.IndexWriter indexWriter) throws IOException
IOExceptionpublic void close()
close in interface AutoCloseableclose in interface org.neo4j.graphdb.Resourceclose in interface org.neo4j.graphdb.ResourceIterator<File>Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.