Class IndexRevision
A IRevision 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 IndexDeletionPolicy should return SnapshotDeletionPolicy).
When this revision is Release()d, it releases the obtained snapshot as well as calls DeleteUnusedFiles() so that the snapshotted files are deleted (if they are no longer needed).
Inheritance
Assembly: Lucene.Net.Replicator.dll
Syntax
public class IndexRevision : object, IRevision, IComparable<IRevision>
Remarks
@lucene.experimental
Constructors
Name | Description |
---|---|
IndexRevision(IndexWriter) | Constructor over the given IndexWriter. Uses the last IndexCommit found in the Directory managed by the given writer. |
Properties
Name | Description |
---|---|
SourceFiles | |
Version |
Methods
Name | Description |
---|---|
CompareTo(IRevision) | |
CompareTo(String) | |
Open(String, String) | |
Release() | |
RevisionFiles(IndexCommit) | Returns a singleton map of the revision files from the given IndexCommit. |
RevisionVersion(IndexCommit) | Returns a string representation of a revision's version from the given IndexCommit |
ToString() |