|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy
public final class KeepOnlyLastCommitDeletionPolicy
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.
Constructor Summary | |
---|---|
KeepOnlyLastCommitDeletionPolicy()
|
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 |
---|
public KeepOnlyLastCommitDeletionPolicy()
Method Detail |
---|
public void onInit(java.util.List commits)
onInit
in interface IndexDeletionPolicy
commits
- List of current
point-in-time commits
,
sorted by age (the 0th one is the oldest commit).public void onCommit(java.util.List commits)
onCommit
in interface IndexDeletionPolicy
commits
- List of IndexCommitPoint
,
sorted by age (the 0th one is the oldest commit).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |