org.compass.core.lucene.engine.indexdeletionpolicy
Class KeepNoneOnInitDeletionPolicy

java.lang.Object
  extended by 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

Constructor Summary
KeepNoneOnInitDeletionPolicy()
           
 
Method Summary
 void onCommit(List commits)
           
 void onInit(List commits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepNoneOnInitDeletionPolicy

public KeepNoneOnInitDeletionPolicy()
Method Detail

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-2009 The Compass Project.