Helper methods for building conjunction iterators
<init>()addIterator(org.apache.lucene.search.DocIdSetIterator disi, List<org.apache.lucene.search.DocIdSetIterator> allIterators, List<org.apache.lucene.search.TwoPhaseIterator> twoPhaseIterators)Given a DocIdSetIterator, find any sub-iterators or two-phase iterators and add them to the provided DocIdSetIterator and TwoPhaseIterator lists
addTwoPhaseIterator(org.apache.lucene.search.TwoPhaseIterator twoPhaseIter, List<org.apache.lucene.search.DocIdSetIterator> allIterators, List<org.apache.lucene.search.TwoPhaseIterator> twoPhaseIterators)Given a two-phase iterator, find any sub-iterators and add them to the provided DocIdSetIterator and TwoPhaseIterator lists
createConjunction(List<org.apache.lucene.search.DocIdSetIterator> allIterators, List<org.apache.lucene.search.TwoPhaseIterator> twoPhaseIterators)Create a conjunction over the provided set of DocIdSetIterators and TwoPhaseIterators, using
two-phase iterator where possible. Note that the returned DocIdSetIterator might
leverage two-phase iteration in which case it is possible to retrieve the TwoPhaseIterator using TwoPhaseIterator#unwrap.
| name | type | description |
|---|---|---|
| all_iterators | List<org.apache.lucene.search.DocIdSetIterator> | a list of DocIdSetIterators to combine |
| two_phase_iterators | List<org.apache.lucene.search.TwoPhaseIterator> | a list of TwoPhaseIterators to combine |
intersectIterators(List<? extends org.apache.lucene.search.DocIdSetIterator> iterators)Create a conjunction over the provided DocIdSetIterators. Note that the returned DocIdSetIterator might leverage two-phase iteration in which case it is possible to retrieve
the TwoPhaseIterator using TwoPhaseIterator#unwrap.
intersectScorers(Collection<org.apache.lucene.search.Scorer> scorers)Create a conjunction over the provided Scorers. Note that the returned DocIdSetIterator might leverage two-phase iteration in which case it is possible to retrieve
the TwoPhaseIterator using TwoPhaseIterator#unwrap.