Class IndexSearcher.LeafReaderContextPartition

java.lang.Object
org.apache.lucene.search.IndexSearcher.LeafReaderContextPartition
Enclosing class:
IndexSearcher

public static final class IndexSearcher.LeafReaderContextPartition extends Object
Holds information about a specific leaf context and the corresponding range of doc ids to search within. Used to optionally search across partitions of the same segment concurrently.

A partition instance can be created via createForEntireSegment(LeafReaderContext), in which case it will target the entire provided LeafReaderContext. A true partition of a segment can be created via createFromAndTo(LeafReaderContext, int, int) providing the minimum doc id (including) to search as well as the max doc id (excluding).

WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • minDocId

      public final int minDocId
    • maxDocId

      public final int maxDocId
    • ctx

      public final LeafReaderContext ctx
  • Method Details