java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.document.SpatialQuery
org.apache.lucene.document.BaseShapeDocValuesQuery
org.apache.lucene.document.LatLonShapeDocValuesQuery
Bounding Box query for
ShapeDocValuesField representing XYShape-
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
ConstructorsConstructorDescriptionLatLonShapeDocValuesQuery(String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... geometries) -
Method Summary
Modifier and TypeMethodDescriptionprotected Component2DcreateComponent2D(Geometry... geometries) protected ShapeDocValuesgetShapeDocValues(BytesRef binaryValue) protected SpatialQuery.SpatialVisitorreturns the spatial visitor to be used for this query.floatcompute the cost of the queryMethods inherited from class org.apache.lucene.document.BaseShapeDocValuesQuery
getScorerSupplier, match, matchesComponentMethods inherited from class org.apache.lucene.document.SpatialQuery
createWeight, equals, equalsTo, getField, getQueryRelation, hashCode, queryIsCacheable, toString, transposeRelation, visit
-
Constructor Details
-
LatLonShapeDocValuesQuery
LatLonShapeDocValuesQuery(String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... geometries)
-
-
Method Details
-
createComponent2D
- Specified by:
createComponent2Din classSpatialQuery
-
getShapeDocValues
- Specified by:
getShapeDocValuesin classBaseShapeDocValuesQuery
-
matchCost
public float matchCost()compute the cost of the query- Overrides:
matchCostin classBaseShapeDocValuesQuery
-
getSpatialVisitor
Description copied from class:SpatialQueryreturns the spatial visitor to be used for this query. Called before generating the queryWeight- Specified by:
getSpatialVisitorin classSpatialQuery
-