org.compass.core.lucene.engine.indexdeletionpolicy
Class KeepNoneOnInitDeletionPolicy
java.lang.Object
org.compass.core.lucene.engine.indexdeletionpolicy.KeepNoneOnInitDeletionPolicy
- All Implemented Interfaces:
- IndexDeletionPolicy
public class KeepNoneOnInitDeletionPolicy
- extends Object
- implements IndexDeletionPolicy
An index deletion policy that deletes all commits when initialized.
- Author:
- kimchy
- See Also:
IndexDeletionPolicyFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepNoneOnInitDeletionPolicy
public KeepNoneOnInitDeletionPolicy()
onInit
public void onInit(List commits)
throws IOException
- Specified by:
onInit in interface IndexDeletionPolicy
- Throws:
IOException
onCommit
public void onCommit(List commits)
throws IOException
- Specified by:
onCommit in interface IndexDeletionPolicy
- Throws:
IOException
Copyright (c) 2004-2008 The Compass Project.