org.apache.lucene.store.MultiDeleteDirectory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compass Show documentation
Show all versions of compass Show documentation
Compass Search Engine Framework
package org.apache.lucene.store;
import java.io.IOException;
import java.util.List;
/**
* Acts as a marker interface for directories that can delete multiple files at one go.
* Basically here untill Lucene will add the method to the Directory
class.
*
* Mainly used for performance reasons, especially for JdbcDirectory
*
* @author kimchy
*/
public interface MultiDeleteDirectory {
/**
* Deletes the given file names. Returns a list of the ones that could not be deleted.
*/
List deleteFiles(final List names) throws IOException;
}