01: package org.compass.core.lucene.engine.indexdeletionpolicy;
02:
03: import java.io.IOException;
04: import java.util.List;
05:
06: import org.apache.lucene.index.IndexDeletionPolicy;
07:
08: /**
09: * An index deletion policy that does not delete any commits, old or new.
10: *
11: * @author kimchy
12: * @see org.compass.core.lucene.engine.indexdeletionpolicy.IndexDeletionPolicyFactory
13: */
14: public class KeepAllDeletionPolicy implements IndexDeletionPolicy {
15:
16: public void onInit(List commits) throws IOException {
17:
18: }
19:
20: public void onCommit(List commits) throws IOException {
21:
22: }
23: }
|