Class IndexSearcher.LeafSlice

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

public static class IndexSearcher.LeafSlice extends Object
A class holding a subset of the IndexSearchers leaf contexts to be executed within a single thread. A leaf slice holds references to one or more IndexSearcher.LeafReaderContextPartition instances. Each partition targets a specific doc id range of a LeafReaderContext.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • partitions

      public final IndexSearcher.LeafReaderContextPartition[] partitions
      The leaves that make up this slice.
      WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

  • Method Details

    • getMaxDocs

      public int getMaxDocs()
      Returns the total number of docs that a slice targets, by summing the number of docs that each of its leaf context partitions targets.