Class NumericComparator.CompetitiveDISIBuilder
java.lang.Object
org.apache.lucene.search.comparators.NumericComparator.CompetitiveDISIBuilder
- Enclosing class:
NumericComparator<T extends Number>
Constructs a competitive iterator which can be updated during collection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NumericComparator<T>.NumericLeafComparatorThe LeafComparator for the current segmentprotected final intmaxDoc of the current segmentprotected longThe current maximum value encoded as a longprotected longThe current minimum value encoded as a long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompetitiveDISIBuilder(NumericComparator<T>.NumericLeafComparator leafComparator) Create a new CompetitiveDISIBuilder -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidBuild a new DocIdSetIterator to use as a competitive iterator, if the new iterator will filter out enough documents.protected abstract booleanAre there documents in this segment with no value for the comparator to useprotected final voidupdateCompetitiveIterator(DocIdSetIterator iterator) Use a new iterator as the competitive iterator for collection
-
Field Details
-
maxDoc
protected final int maxDocmaxDoc of the current segment -
leafComparator
The LeafComparator for the current segment -
minValueAsLong
protected long minValueAsLongThe current minimum value encoded as a long -
maxValueAsLong
protected long maxValueAsLongThe current maximum value encoded as a long
-
-
Constructor Details
-
CompetitiveDISIBuilder
Create a new CompetitiveDISIBuilder
-
-
Method Details
-
hasMissingDocs
protected abstract boolean hasMissingDocs()Are there documents in this segment with no value for the comparator to use -
doUpdateCompetitiveIterator
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 toupdateCompetitiveIterator(DocIdSetIterator)- Throws:
IOException
-
updateCompetitiveIterator
Use a new iterator as the competitive iterator for collection
-