Save This Page
Home » lucene-2.4.1-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
public final class: KeepOnlyLastCommitDeletionPolicy [javadoc | source]
java.lang.Object
   org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy

All Implemented Interfaces:
    IndexDeletionPolicy

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.
Method from org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy Summary:
onCommit,   onInit
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy Detail:
 public  void onCommit(List commits) 
    Deletes all commits except the most recent one.
 public  void onInit(List commits) 
    Deletes all commits except the most recent one.