org.apache.lucene.index

## Class SimpleMergedSegmentWarmer

- java.lang.Object
- - org.apache.lucene.index.IndexWriter.IndexReaderWarmer
  - - org.apache.lucene.index.SimpleMergedSegmentWarmer

-     public class SimpleMergedSegmentWarmer
      extends IndexWriter.IndexReaderWarmer

  A very simple merged segment warmer that just ensures data structures are initialized.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleMergedSegmentWarmer(InfoStream infoStream)` Creates a new SimpleMergedSegmentWarmer

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `warm(LeafReader reader)` Invoked on the `LeafReader` for the newly merged segment, before that segment is made visible to near-real-time readers.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleMergedSegmentWarmer

          public SimpleMergedSegmentWarmer(InfoStream infoStream)

      Creates a new SimpleMergedSegmentWarmer
      Parameters:
        `infoStream` - InfoStream to log statistics about warming.

  - ### Method Detail

    - #### warm

          public void warm(LeafReader reader)
                    throws IOException

      Description copied from class: `IndexWriter.IndexReaderWarmer`
      Invoked on the `LeafReader` for the newly merged segment, before that segment is made visible to near-real-time readers.
      Specified by:
        `warm` in class `IndexWriter.IndexReaderWarmer`
      Throws:
        `IOException`

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.