Package 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 Description SimpleMergedSegmentWarmer(InfoStream infoStream)
Creates a new SimpleMergedSegmentWarmer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
warm(AtomicReader reader)
Invoked on theAtomicReader
for the newly merged segment, before that segment is made visible to near-real-time readers.
-
-
-
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(AtomicReader reader) throws IOException
Description copied from class:IndexWriter.IndexReaderWarmer
Invoked on theAtomicReader
for the newly merged segment, before that segment is made visible to near-real-time readers.- Specified by:
warm
in classIndexWriter.IndexReaderWarmer
- Throws:
IOException
-
-