Class MergeScheduler

    • Field Detail

      • infoStream

        protected InfoStream infoStream
        For messages about merge scheduling
    • Constructor Detail

      • MergeScheduler

        protected MergeScheduler()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • Method Detail

      • close

        public abstract void close()
                            throws java.io.IOException
        Close this MergeScheduler.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • initialize

        void initialize​(InfoStream infoStream,
                        Directory directory)
                 throws java.io.IOException
        IndexWriter calls this on init.
        Throws:
        java.io.IOException
      • verbose

        protected boolean verbose()
        Returns true if infoStream messages are enabled. This method is usually used in conjunction with message(String):
         if (verbose()) {
           message("your message");
         }
         
      • message

        protected void message​(java.lang.String message)
        Outputs the given message - this method assumes verbose() was called and returned true.