Package org.apache.lucene.document
Class LatLonPointQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.document.SpatialQuery
-
- org.apache.lucene.document.LatLonPointQuery
-
final class LatLonPointQuery extends SpatialQuery
Finds all previously indexed geo points that comply the givenShapeField.QueryRelationwith the specified array ofLatLonGeometry.The field must be indexed using one or more
LatLonPointadded per document.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.document.SpatialQuery
SpatialQuery.SpatialVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private Component2Dcomponent2Dprivate LatLonGeometry[]geometries-
Fields inherited from class org.apache.lucene.document.SpatialQuery
field, queryRelation
-
-
Constructor Summary
Constructors Constructor Description LatLonPointQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... geometries)Creates a query that matches all indexed shapes to the provided array ofLatLonGeometry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanequalsTo(java.lang.Object o)class specific equals checkprotected SpatialQuery.SpatialVisitorgetSpatialVisitor()returns the spatial visitor to be used for this query.inthashCode()Override and implement query hash code properly in a subclass.java.lang.StringtoString(java.lang.String field)Prints a query to a string, withfieldassumed to be the default field and omitted.-
Methods inherited from class org.apache.lucene.document.SpatialQuery
createWeight, equals, getField, getQueryRelation, transposeRelation, visit
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
-
-
-
Field Detail
-
geometries
private final LatLonGeometry[] geometries
-
component2D
private final Component2D component2D
-
-
Constructor Detail
-
LatLonPointQuery
LatLonPointQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... geometries)Creates a query that matches all indexed shapes to the provided array ofLatLonGeometry
-
-
Method Detail
-
getSpatialVisitor
protected SpatialQuery.SpatialVisitor getSpatialVisitor()
Description copied from class:SpatialQueryreturns the spatial visitor to be used for this query. Called before generating the queryWeight- Specified by:
getSpatialVisitorin classSpatialQuery
-
toString
public java.lang.String toString(java.lang.String field)
Description copied from class:QueryPrints a query to a string, withfieldassumed to be the default field and omitted.
-
equalsTo
protected boolean equalsTo(java.lang.Object o)
Description copied from class:SpatialQueryclass specific equals check- Overrides:
equalsToin classSpatialQuery
-
hashCode
public int hashCode()
Description copied from class:QueryOverride and implement query hash code properly in a subclass. This is required so thatQueryCacheworks properly.- Overrides:
hashCodein classSpatialQuery- See Also:
Query.equals(Object)
-
-