ConjunctionUtils

Helper methods for building conjunction iterators

Functions

Link copied to clipboard

Given a DocIdSetIterator, find any sub-iterators or two-phase iterators and add them to the provided DocIdSetIterator and TwoPhaseIterator lists

Link copied to clipboard
fun addTwoPhaseIterator(twoPhaseIter: TwoPhaseIterator, allIterators: MutableList<DocIdSetIterator>, twoPhaseIterators: MutableList<TwoPhaseIterator>)

Given a two-phase iterator, find any sub-iterators and add them to the provided DocIdSetIterator and TwoPhaseIterator lists

Link copied to clipboard

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 [ ] using TwoPhaseIterator.unwrap.

Link copied to clipboard

Create a conjunction over the provided DocIdSetIterators. Note that the returned [ ] might leverage two-phase iteration in which case it is possible to retrieve the TwoPhaseIterator using TwoPhaseIterator.unwrap.

Link copied to clipboard

Create a conjunction over the provided Scorers. Note that the returned [ ] might leverage two-phase iteration in which case it is possible to retrieve the TwoPhaseIterator using TwoPhaseIterator.unwrap.