Class ReaderPool

java.lang.Object
org.apache.lucene.index.ReaderPool
All Implemented Interfaces:
Closeable, AutoCloseable

final class ReaderPool extends Object implements Closeable
Holds shared SegmentReader instances. IndexWriter uses SegmentReaders for 1) applying deletes/DV updates, 2) doing merges, 3) handing out a real-time reader. This pool reuses instances of the SegmentReaders in all these places if it is in "near real-time mode" (getReader() has been called on this instance).