Package org.apache.lucene.document
Class XYShapeDocValuesQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.document.SpatialQuery
org.apache.lucene.document.BaseShapeDocValuesQuery
org.apache.lucene.document.XYShapeDocValuesQuery
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
ConstructorsConstructorDescriptionXYShapeDocValuesQuery
(String field, ShapeField.QueryRelation queryRelation, XYGeometry... geometries) -
Method Summary
Modifier and TypeMethodDescriptionprotected Component2D
createComponent2D
(Geometry... geometries) protected ShapeDocValues
getShapeDocValues
(BytesRef binaryValue) protected SpatialQuery.SpatialVisitor
returns the spatial visitor to be used for this query.Methods inherited from class org.apache.lucene.document.BaseShapeDocValuesQuery
getScorerSupplier, match, matchCost, matchesComponent
Methods inherited from class org.apache.lucene.document.SpatialQuery
createWeight, equals, equalsTo, getField, getQueryRelation, hashCode, queryIsCacheable, toString, transposeRelation, visit
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
XYShapeDocValuesQuery
XYShapeDocValuesQuery(String field, ShapeField.QueryRelation queryRelation, XYGeometry... geometries)
-
-
Method Details
-
createComponent2D
- Specified by:
createComponent2D
in classSpatialQuery
-
getShapeDocValues
- Specified by:
getShapeDocValues
in classBaseShapeDocValuesQuery
-
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
-