_writer = new IndexWriter(_finalDir, _conf.clone());
}
}
private Progressable getProgressable() {
final Progressable prg = BlurOutputFormat.getProgressable();
return new Progressable() {
private Progressable _progressable = prg;
private long _lastWarn = 0;
private boolean _progressSetupLogged = false;
@Override
public void progress() {
if (_progressable != null) {
_progressable.progress();
if (!_progressSetupLogged) {
LOG.info("Progress has been setup correctly.");
_progressSetupLogged = true;
}
} else {
Progressable progressable = BlurOutputFormat.getProgressable();
if (progressable != null) {
_progressable = progressable;
} else {
long now = System.nanoTime();
if (_lastWarn + TimeUnit.SECONDS.toNanos(10) < now) {