01: package org.apache.lucene.store;
02:
03: import java.io.IOException;
04: import java.util.List;
05:
06: /**
07: * Acts as a marker interface for directories that can delete multiple files at one go.
08: * Basically here untill Lucene will add the method to the <code>Directory</code> class.
09: * <p/>
10: * Mainly used for performance reasons, especially for <code>JdbcDirectory</code>
11: *
12: * @author kimchy
13: */
14: public interface MultiDeleteDirectory {
15:
16: /**
17: * Deletes the given file names. Returns a list of the ones that could not be deleted.
18: */
19: List deleteFiles(final List names) throws IOException;
20: }
|