Package org.apache.lucene.search
Class IndexSearcher.LeafSlice
java.lang.Object
org.apache.lucene.search.IndexSearcher.LeafSlice
- Enclosing class:
IndexSearcher
A class holding a subset of the
IndexSearcher
s 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 Summary
FieldsModifier and TypeFieldDescriptionThe leaves that make up this slice. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the total number of docs that a slice targets, by summing the number of docs that each of its leaf context partitions targets.
-
Field Details
-
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
-
LeafSlice
-
-
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.
-