| 24 | import org.apache.nutch.plugin.Pluggable; |
| 25 | |
| 26 | public interface IndexWriter extends Configurable, Pluggable { |
| 27 | /** The name of the extension point. */ |
| 28 | final static String X_POINT_ID = IndexWriter.class.getName(); |
| 29 | |
| 30 | public void open(Configuration job) throws IOException; |
| 31 | |
| 32 | public void write(NutchDocument doc) throws IOException; |
| 33 | |
| 34 | public void delete(String key) throws IOException; |
| 35 | |
| 36 | public void update(NutchDocument doc) throws IOException; |
| 37 | |
| 38 | public void commit() throws IOException; |
| 39 | |
| 40 | public void close() throws IOException; |
| 41 | |
| 42 | /** |
| 43 | * Returns a String describing the IndexWriter instance and the specific |
| 44 | * parameters it can take |
| 45 | */ |
| 46 | public String describe(); |
| 47 | } |
no test coverage detected