org.getopt.luke
Class KeepLastIndexDeletionPolicy

java.lang.Object
  extended by org.getopt.luke.KeepLastIndexDeletionPolicy
All Implemented Interfaces:
org.apache.lucene.index.IndexDeletionPolicy

public class KeepLastIndexDeletionPolicy
extends java.lang.Object
implements org.apache.lucene.index.IndexDeletionPolicy


Constructor Summary
KeepLastIndexDeletionPolicy()
           
 
Method Summary
 void onCommit(java.util.List commits)
          Deletes all commits except the most recent one.
 void onInit(java.util.List commits)
          Deletes all commits except the most recent one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepLastIndexDeletionPolicy

public KeepLastIndexDeletionPolicy()
Method Detail

onInit

public void onInit(java.util.List commits)
Deletes all commits except the most recent one.

Specified by:
onInit in interface org.apache.lucene.index.IndexDeletionPolicy

onCommit

public void onCommit(java.util.List commits)
Deletes all commits except the most recent one.

Specified by:
onCommit in interface org.apache.lucene.index.IndexDeletionPolicy