Class NumericComparator.CompetitiveDISIBuilder

java.lang.Object
org.apache.lucene.search.comparators.NumericComparator.CompetitiveDISIBuilder
Enclosing class:
NumericComparator<T extends Number>

protected abstract class NumericComparator.CompetitiveDISIBuilder extends Object
Constructs a competitive iterator which can be updated during collection
  • Field Details

    • maxDoc

      protected final int maxDoc
      maxDoc of the current segment
    • leafComparator

      protected final NumericComparator<T extends Number>.NumericLeafComparator leafComparator
      The LeafComparator for the current segment
    • minValueAsLong

      protected long minValueAsLong
      The current minimum value encoded as a long
    • maxValueAsLong

      protected long maxValueAsLong
      The current maximum value encoded as a long
  • Constructor Details

  • Method Details

    • hasMissingDocs

      protected abstract boolean hasMissingDocs()
      Are there documents in this segment with no value for the comparator to use
    • doUpdateCompetitiveIterator

      protected abstract void doUpdateCompetitiveIterator() throws IOException
      Build a new DocIdSetIterator to use as a competitive iterator, if the new iterator will filter out enough documents. Implementations should pass their newly built iterators to updateCompetitiveIterator(DocIdSetIterator)
      Throws:
      IOException
    • updateCompetitiveIterator

      protected final void updateCompetitiveIterator(DocIdSetIterator iterator)
      Use a new iterator as the competitive iterator for collection