comparison src/goodjava/lucene/logging/BasicOpDoer.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
10 protected final GoodIndexWriter writer; 10 protected final GoodIndexWriter writer;
11 protected boolean isActive = true; 11 protected boolean isActive = true;
12 12
13 public BasicOpDoer(GoodIndexWriter writer) { 13 public BasicOpDoer(GoodIndexWriter writer) {
14 this.writer = writer; 14 this.writer = writer;
15 }
16
17 public GoodIndexWriter writer() {
18 return writer;
19 } 15 }
20 16
21 public void commit() throws IOException { 17 public void commit() throws IOException {
22 if( !isActive ) 18 if( !isActive )
23 return; 19 return;