Class TwoPhaseIterator

java.lang.Object
org.apache.lucene.search.TwoPhaseIterator

public abstract class TwoPhaseIterator extends Object
Returned by Scorer.twoPhaseIterator() to expose an approximation of a DocIdSetIterator. When the approximation()'s DocIdSetIterator.nextDoc() or DocIdSetIterator.advance(int) return, matches() needs to be checked in order to know whether the returned doc ID actually matches.
WARNING: This API is experimental and might change in incompatible ways in the next release.