Class SerialMergeScheduler

    • Constructor Detail

      • SerialMergeScheduler

        public SerialMergeScheduler()
        Sole constructor.
    • Method Detail

      • merge

        public void merge​(IndexWriter writer,
                          MergeTrigger trigger,
                          boolean newMergesFound)
                   throws IOException
        Just do the merges in sequence. We do this "synchronized" so that even if the application is using multiple threads, only one merge may run at a time.
        Specified by:
        merge in class MergeScheduler
        Parameters:
        writer - the IndexWriter to obtain the merges from.
        trigger - the MergeTrigger that caused this merge to happen
        newMergesFound - true iff any new merges were found by the caller otherwise false
        Throws:
        IOException