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.
public abstract long cost()Get an estimate of the
Scorerthat would be returned by
get(long). This may be a costly operation, so it should only be called if necessary.
- See Also: