Class NoDeletionPolicy
An IndexDeletionPolicy which keeps all index commits around, never deleting them. This class is a singleton and can be accessed by referencing INSTANCE.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public sealed class NoDeletionPolicy : IndexDeletionPolicy
Fields
| Improve this Doc View SourceINSTANCE
The single instance of this class.
Declaration
public static readonly IndexDeletionPolicy INSTANCE
Field Value
Type | Description |
---|---|
IndexDeletionPolicy |
Methods
| Improve this Doc View SourceClone()
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
Overrides
| Improve this Doc View SourceOnCommit<T>(IList<T>)
Declaration
public override void OnCommit<T>(IList<T> commits)
where T : IndexCommit
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<T> | commits |
Type Parameters
Name | Description |
---|---|
T |
Overrides
Lucene.Net.Index.IndexDeletionPolicy.OnCommit<T>(System.Collections.Generic.IList<T>)
|
Improve this Doc
View Source
OnInit<T>(IList<T>)
Declaration
public override void OnInit<T>(IList<T> commits)
where T : IndexCommit
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<T> | commits |
Type Parameters
Name | Description |
---|---|
T |
Overrides
Lucene.Net.Index.IndexDeletionPolicy.OnInit<T>(System.Collections.Generic.IList<T>)