Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | List of all members
Lucene.Net.Index.KeepOnlyLastCommitDeletionPolicy Class Reference

This IndexDeletionPolicy implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done. This is the default deletion policy. More...

Inherits Lucene.Net.Index.IndexDeletionPolicy.

Public Member Functions

void OnInit< T > (IList< T > commits)
 Deletes all commits except the most recent one.
 
void OnCommit< T > (IList< T > commits)
 Deletes all commits except the most recent one.
 

Detailed Description

This IndexDeletionPolicy implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done. This is the default deletion policy.

Definition at line 29 of file KeepOnlyLastCommitDeletionPolicy.cs.

Member Function Documentation

void Lucene.Net.Index.KeepOnlyLastCommitDeletionPolicy.OnCommit< T > ( IList< T >  commits)

Deletes all commits except the most recent one.

Implements Lucene.Net.Index.IndexDeletionPolicy.

Type Constraints
T :IndexCommit 

Definition at line 40 of file KeepOnlyLastCommitDeletionPolicy.cs.

void Lucene.Net.Index.KeepOnlyLastCommitDeletionPolicy.OnInit< T > ( IList< T >  commits)

Deletes all commits except the most recent one.

Implements Lucene.Net.Index.IndexDeletionPolicy.

Type Constraints
T :IndexCommit 

Definition at line 33 of file KeepOnlyLastCommitDeletionPolicy.cs.


The documentation for this class was generated from the following file: