Module org.apache.lucene.core
Package org.apache.lucene.search
Class ConjunctionDISI.ConjunctionTwoPhaseIterator
java.lang.Object
org.apache.lucene.search.TwoPhaseIterator
org.apache.lucene.search.ConjunctionDISI.ConjunctionTwoPhaseIterator
- Enclosing class:
ConjunctionDISI
TwoPhaseIterator implementing a conjunction.-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.TwoPhaseIterator
approximation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConjunctionTwoPhaseIterator(DocIdSetIterator approximation, List<? extends TwoPhaseIterator> twoPhaseIterators) -
Method Summary
Modifier and TypeMethodDescriptionfloatAn estimate of the expected cost to determine that a single documentTwoPhaseIterator.matches().booleanmatches()Return whether the current doc ID thatTwoPhaseIterator.approximation()is on matches.Methods inherited from class org.apache.lucene.search.TwoPhaseIterator
approximation, asDocIdSetIterator, unwrap
-
Field Details
-
twoPhaseIterators
-
matchCost
private final float matchCost
-
-
Constructor Details
-
ConjunctionTwoPhaseIterator
private ConjunctionTwoPhaseIterator(DocIdSetIterator approximation, List<? extends TwoPhaseIterator> twoPhaseIterators)
-
-
Method Details
-
matches
Description copied from class:TwoPhaseIteratorReturn whether the current doc ID thatTwoPhaseIterator.approximation()is on matches. This method should only be called when the iterator is positioned -- ie. not whenDocIdSetIterator.docID()is-1orDocIdSetIterator.NO_MORE_DOCS-- and at most once.- Specified by:
matchesin classTwoPhaseIterator- Throws:
IOException
-
matchCost
public float matchCost()Description copied from class:TwoPhaseIteratorAn estimate of the expected cost to determine that a single documentTwoPhaseIterator.matches(). This can be called before iterating the documents ofTwoPhaseIterator.approximation(). Returns an expected cost in number of simple operations like addition, multiplication, comparing two numbers and indexing an array. The returned value must be positive.- Specified by:
matchCostin classTwoPhaseIterator
-