- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.document.SpatialQuery
-
- org.apache.lucene.document.BaseShapeDocValuesQuery
-
- org.apache.lucene.document.LatLonShapeDocValuesQuery
-
final class LatLonShapeDocValuesQuery extends BaseShapeDocValuesQuery
Bounding Box query forShapeDocValuesField
representingXYShape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.document.SpatialQuery
SpatialQuery.EncodedRectangle, SpatialQuery.SpatialVisitor
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.document.SpatialQuery
field, geometries, queryComponent2D, queryRelation
-
-
Constructor Summary
Constructors Constructor Description LatLonShapeDocValuesQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... geometries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Component2D
createComponent2D(Geometry... geometries)
protected ShapeDocValues
getShapeDocValues(BytesRef binaryValue)
protected SpatialQuery.SpatialVisitor
getSpatialVisitor()
returns the spatial visitor to be used for this query.float
matchCost()
compute the cost of the query-
Methods inherited from class org.apache.lucene.document.BaseShapeDocValuesQuery
getScorerSupplier, match, matchesComponent
-
Methods inherited from class org.apache.lucene.document.SpatialQuery
createWeight, equals, equalsTo, getField, getQueryRelation, hashCode, queryIsCacheable, toString, transposeRelation, visit
-
-
-
-
Constructor Detail
-
LatLonShapeDocValuesQuery
LatLonShapeDocValuesQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... geometries)
-
-
Method Detail
-
createComponent2D
protected Component2D createComponent2D(Geometry... geometries)
- Specified by:
createComponent2D
in classSpatialQuery
-
getShapeDocValues
protected ShapeDocValues getShapeDocValues(BytesRef binaryValue)
- Specified by:
getShapeDocValues
in classBaseShapeDocValuesQuery
-
matchCost
public float matchCost()
compute the cost of the query- Overrides:
matchCost
in classBaseShapeDocValuesQuery
-
getSpatialVisitor
protected SpatialQuery.SpatialVisitor getSpatialVisitor()
Description copied from class:SpatialQuery
returns the spatial visitor to be used for this query. Called before generating the queryWeight
- Specified by:
getSpatialVisitor
in classSpatialQuery
-
-