Interface IRevision
A revision comprises lists of files that come from different sources and need to be replicated together to e.g. guarantee that all resources are in sync. In most cases an application will replicate a single index, and so the revision will contain files from a single source. However, some applications may require to treat a collection of indexes as a single entity so that the files from all sources are replicated together, to guarantee consistency beween them. For example, an application which indexes facets will need to replicate both the search and taxonomy indexes together, to guarantee that they match at the client side.
Assembly: Lucene.Net.Replicator.dll
Syntax
public interface IRevision : IComparable<IRevision>
Remarks
@lucene.experimental
Properties
Name | Description |
---|---|
SourceFiles | Returns the files that comprise this revision, as a mapping from a source to a list of files. |
Version | Returns a string representation of the version of this revision. The version is used by CompareTo(String) as well as to serialize/deserialize revision information. Therefore it must be self descriptive as well as be able to identify one revision from another. |
Methods
Name | Description |
---|---|
CompareTo(String) | Compares the revision to the given version string. Behaves like
|
Open(String, String) | Returns a |
Release() | Called when this revision can be safely released, i.e. where there are no more references to it. |