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 |
void | onCommit(List commits)
Deletes all commits except the most recent one. |
void | onInit(List commits)
Deletes all commits except the most recent one. |
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.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.