Package org.apache.lucene.index
Class SimpleMergedSegmentWarmer
java.lang.Object
org.apache.lucene.index.SimpleMergedSegmentWarmer
- All Implemented Interfaces:
IndexWriter.IndexReaderWarmer
A very simple merged segment warmer that just ensures data structures are initialized.
-
Constructor Summary
ConstructorDescriptionSimpleMergedSegmentWarmer
(InfoStream infoStream) Creates a new SimpleMergedSegmentWarmer -
Method Summary
Modifier and TypeMethodDescriptionvoid
warm
(LeafReader reader) Invoked on theLeafReader
for the newly merged segment, before that segment is made visible to near-real-time readers.
-
Constructor Details
-
SimpleMergedSegmentWarmer
Creates a new SimpleMergedSegmentWarmer- Parameters:
infoStream
- InfoStream to log statistics about warming.
-
-
Method Details
-
warm
Description copied from interface:IndexWriter.IndexReaderWarmer
Invoked on theLeafReader
for the newly merged segment, before that segment is made visible to near-real-time readers.- Specified by:
warm
in interfaceIndexWriter.IndexReaderWarmer
- Throws:
IOException
-