Class IndexRevision

java.lang.Object
org.apache.lucene.replicator.IndexRevision
All Implemented Interfaces:
Comparable<Revision>, Revision

public class IndexRevision extends Object implements Revision
A Revision of a single index files which comprises the list of files that are part of the current IndexCommit. To ensure the files are not deleted by IndexWriter for as long as this revision stays alive (i.e. until release()), the current commit point is snapshotted, using SnapshotDeletionPolicy (this means that the given writer's config should return SnapshotDeletionPolicy).

When this revision is released, it releases the obtained snapshot as well as calls IndexWriter.deleteUnusedFiles() so that the snapshotted files are deleted (if they are no longer needed).

WARNING: This API is experimental and might change in incompatible ways in the next release.