public abstract class ScorerSupplier extends Object
Constructors Constructor Description
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
get(long leadCost)Get the
public abstract Scorer get(long leadCost) throws IOExceptionGet the
Scorer. This may not return
nulland must be called at most once.
leadCost- Cost of the scorer that will be used in order to lead iteration. This can be interpreted as an upper bound of the number of times that
TwoPhaseIterator.matches()will be called. Under doubt, pass
Long.MAX_VALUE, which will produce a
Scorerthat has good iteration capabilities.