comparison src/luan/modules/lucene/LuanOpDoer.java @ 1556:52241b69c339

lucene logging
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 11 Oct 2020 17:28:16 -0600
parents 9cc4cee39b8b
children 8fbcc4747091
comparison
equal deleted inserted replaced
1555:1b397a949791 1556:52241b69c339
16 private final LuanFunction fn; 16 private final LuanFunction fn;
17 17
18 LuanOpDoer(GoodIndexWriter writer,LuanFunction fn) { 18 LuanOpDoer(GoodIndexWriter writer,LuanFunction fn) {
19 this.opDoer = new BasicOpDoer(writer); 19 this.opDoer = new BasicOpDoer(writer);
20 this.fn = fn; 20 this.fn = fn;
21 }
22
23 public GoodIndexWriter writer() {
24 return opDoer.writer();
25 } 21 }
26 22
27 public void commit() throws IOException { 23 public void commit() throws IOException {
28 try { 24 try {
29 fn.call(new CommitAction(opDoer)); 25 fn.call(new CommitAction(opDoer));