public class SerialMergeScheduler extends MergeScheduler
MergeScheduler
that simply does each merge
sequentially, using the current thread.infoStream
Constructor and Description |
---|
SerialMergeScheduler()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this MergeScheduler.
|
void |
merge(IndexWriter writer,
MergeTrigger trigger,
boolean newMergesFound)
Just do the merges in sequence.
|
message, verbose, wrapForMerge
public void merge(IndexWriter writer, MergeTrigger trigger, boolean newMergesFound) throws IOException
merge
in class MergeScheduler
writer
- the IndexWriter
to obtain the merges from.trigger
- the MergeTrigger
that caused this merge to happennewMergesFound
- true
iff any new merges were found by the caller otherwise false
IOException
public void close()
MergeScheduler
close
in interface Closeable
close
in interface AutoCloseable
close
in class MergeScheduler
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.