comparison src/goodjava/lucene/logging/OpDoer.java @ 1556:52241b69c339

lucene logging
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 11 Oct 2020 17:28:16 -0600
parents 9cc4cee39b8b
children
comparison
equal deleted inserted replaced
1555:1b397a949791 1556:52241b69c339
5 import org.apache.lucene.search.Query; 5 import org.apache.lucene.search.Query;
6 import goodjava.lucene.api.GoodIndexWriter; 6 import goodjava.lucene.api.GoodIndexWriter;
7 7
8 8
9 public interface OpDoer { 9 public interface OpDoer {
10 public GoodIndexWriter writer();
11 public void commit() throws IOException; 10 public void commit() throws IOException;
12 public void deleteAll(long time) throws IOException; 11 public void deleteAll(long time) throws IOException;
13 public void deleteDocuments(long time,Query query) throws IOException; 12 public void deleteDocuments(long time,Query query) throws IOException;
14 public void addDocument(long time,Map<String,Object> storedFields) throws IOException; 13 public void addDocument(long time,Map<String,Object> storedFields) throws IOException;
15 public void updateDocument(long time,String keyFieldName,Map<String,Object> storedFields) throws IOException; 14 public void updateDocument(long time,String keyFieldName,Map<String,Object> storedFields) throws IOException;