org.apache.lucene.index

Class KeepOnlyLastCommitDeletionPolicy

public final class KeepOnlyLastCommitDeletionPolicy extends Object implements 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 Summary
voidonCommit(List commits)
Deletes all commits except the most recent one.
voidonInit(List commits)
Deletes all commits except the most recent one.

Method Detail

onCommit

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

onInit

public void onInit(List commits)
Deletes all commits except the most recent one.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.