Module org.elasticsearch.compute
Interface LuceneSliceQueue.LeafSplitGuard
- Enclosing class:
LuceneSliceQueue
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Per-leaf hint that suppresses sub-segment splitting for the
LuceneSliceQueue.PartitioningStrategy.DOC partitioner.
Used by LuceneCountOperator, which probes
Weight.count(LeafReaderContext) per leaf and keeps shortcut-eligible
leaves whole so the leaf-wide count can fire via
LuceneOperator.LuceneScorer.coversFullLeaf() instead of being
iterated by the BulkScorer.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleankeepWhole(org.apache.lucene.search.Weight weight, org.apache.lucene.index.LeafReaderContext leaf) Returnstruewhenleafshould be emitted as a single, full-leaf slice instead of being split by the adaptive DOC partitioner.
-
Field Details
-
NEVER
-
-
Method Details
-
keepWhole
boolean keepWhole(org.apache.lucene.search.Weight weight, org.apache.lucene.index.LeafReaderContext leaf) throws IOException Returnstruewhenleafshould be emitted as a single, full-leaf slice instead of being split by the adaptive DOC partitioner.- Throws:
IOException
-