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.

@FunctionalInterface public static interface LuceneSliceQueue.LeafSplitGuard
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
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    keepWhole(org.apache.lucene.search.Weight weight, org.apache.lucene.index.LeafReaderContext leaf)
    Returns true when leaf should be emitted as a single, full-leaf slice instead of being split by the adaptive DOC partitioner.
  • Field Details

  • Method Details

    • keepWhole

      boolean keepWhole(org.apache.lucene.search.Weight weight, org.apache.lucene.index.LeafReaderContext leaf) throws IOException
      Returns true when leaf should be emitted as a single, full-leaf slice instead of being split by the adaptive DOC partitioner.
      Throws:
      IOException