public class SimpleMergedSegmentWarmer extends Object implements IndexWriter.IndexReaderWarmer
Constructor and Description |
---|
SimpleMergedSegmentWarmer(InfoStream infoStream)
Creates a new SimpleMergedSegmentWarmer
|
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. |
public SimpleMergedSegmentWarmer(InfoStream infoStream)
infoStream
- InfoStream to log statistics about warming.public void warm(LeafReader reader) throws IOException
IndexWriter.IndexReaderWarmer
LeafReader
for the newly
merged segment, before that segment is made visible
to near-real-time readers.warm
in interface IndexWriter.IndexReaderWarmer
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.