private abstract static class ShapeQuery.RelationScorerSupplier extends ScorerSupplier
| Modifier and Type | Field and Description |
|---|---|
private long |
cost |
private ShapeQuery |
query |
private PointValues |
values |
| Constructor and Description |
|---|
RelationScorerSupplier(PointValues values,
ShapeQuery query) |
| Modifier and Type | Method and Description |
|---|---|
long |
cost()
Get an estimate of the
Scorer that would be returned by ScorerSupplier.get(long). |
private Scorer |
getContainsDenseScorer(LeafReader reader,
Weight weight,
float boost,
ScoreMode scoreMode) |
private Scorer |
getDenseScorer(LeafReader reader,
Weight weight,
float boost,
ScoreMode scoreMode)
Scorer used for WITHIN and DISJOINT
|
protected Scorer |
getScorer(LeafReader reader,
Weight weight,
float boost,
ScoreMode scoreMode) |
private Scorer |
getSparseScorer(LeafReader reader,
Weight weight,
float boost,
ScoreMode scoreMode)
Scorer used for INTERSECTS
|
getprivate final PointValues values
private final ShapeQuery query
private long cost
RelationScorerSupplier(PointValues values, ShapeQuery query)
protected Scorer getScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) throws java.io.IOException
java.io.IOExceptionprivate Scorer getSparseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) throws java.io.IOException
java.io.IOExceptionprivate Scorer getDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) throws java.io.IOException
java.io.IOExceptionprivate Scorer getContainsDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) throws java.io.IOException
java.io.IOExceptionpublic long cost()
ScorerSupplierScorer that would be returned by ScorerSupplier.get(long).
This may be a costly operation, so it should only be called if necessary.cost in class ScorerSupplierDocIdSetIterator.cost()