public abstract class ScorerSupplier extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Get an estimate of the
public abstract Scorer get(boolean randomAccess) throws IOException
Scorer. This may not return
nulland must be called at most once.
randomAccess- A hint about the expected usage of the
TwoPhaseIteratorwill be used to check whether given doc ids match, then pass
true. Otherwise if the
Scorerwill be mostly used to lead the iteration using
falseshould be passed. Under doubt, pass
falsewhich usually has a better worst-case.
public abstract long cost()
Scorerthat would be returned by
get(boolean). This may be a costly operation, so it should only be called if necessary.
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.