private abstract static class LatLonShapeQuery.RelationScorerSupplier extends ScorerSupplier
Modifier and Type | Field and Description |
---|---|
(package private) long |
cost |
(package private) PointValues.IntersectVisitor |
disjointVisitor |
(package private) LatLonShape.QueryRelation |
queryRelation |
(package private) PointValues |
values |
(package private) PointValues.IntersectVisitor |
visitor |
Constructor and Description |
---|
RelationScorerSupplier(PointValues values,
PointValues.IntersectVisitor visitor,
PointValues.IntersectVisitor disjointVisitor,
LatLonShape.QueryRelation queryRelation) |
Modifier and Type | Method and Description |
---|---|
long |
cost()
Get an estimate of the
Scorer that would be returned by ScorerSupplier.get(long) . |
protected Scorer |
getIntersectsScorer(LatLonShapeQuery query,
LeafReader reader,
Weight weight,
DocIdSetBuilder docIdSetBuilder,
float boost,
ScoreMode scoreMode)
returns a Scorer for INTERSECT queries that uses a sparse bitset
|
private PointValues.IntersectVisitor |
getInverseIntersectVisitor(LatLonShapeQuery query,
FixedBitSet result,
int[] cost)
create a visitor that clears documents that do NOT match the polygon query; used with INTERSECTS
|
protected Scorer |
getScorer(LatLonShapeQuery query,
Weight weight,
FixedBitSet intersect,
FixedBitSet disjoint,
float boost,
ScoreMode scoreMode)
returns a Scorer for all other (non INTERSECT) queries
|
get
PointValues values
PointValues.IntersectVisitor visitor
PointValues.IntersectVisitor disjointVisitor
LatLonShape.QueryRelation queryRelation
long cost
RelationScorerSupplier(PointValues values, PointValues.IntersectVisitor visitor, PointValues.IntersectVisitor disjointVisitor, LatLonShape.QueryRelation queryRelation)
private PointValues.IntersectVisitor getInverseIntersectVisitor(LatLonShapeQuery query, FixedBitSet result, int[] cost)
protected Scorer getIntersectsScorer(LatLonShapeQuery query, LeafReader reader, Weight weight, DocIdSetBuilder docIdSetBuilder, float boost, ScoreMode scoreMode) throws java.io.IOException
java.io.IOException
protected Scorer getScorer(LatLonShapeQuery query, Weight weight, FixedBitSet intersect, FixedBitSet disjoint, float boost, ScoreMode scoreMode) throws java.io.IOException
java.io.IOException
public long cost()
ScorerSupplier
Scorer
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 ScorerSupplier
DocIdSetIterator.cost()