Package org.ametys.cms.search.query
Class GeocodeQuery
- java.lang.Object
 - 
- org.ametys.cms.search.query.AbstractFieldQuery
 - 
- org.ametys.cms.search.query.GeocodeQuery
 
 
 
- 
- All Implemented Interfaces:
 Query
public class GeocodeQuery extends AbstractFieldQuery
Represents aQuerytesting a geocode field. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected Query.Operator_operatorThe operator.protected Map<String,Integer>_valueThe value.- 
Fields inherited from class org.ametys.cms.search.query.AbstractFieldQuery
_fieldPath 
 - 
 
- 
Constructor Summary
Constructors Constructor Description GeocodeQuery(String fieldPath)Build a Geocode testing the existence of the field.GeocodeQuery(String fieldPath, Query.Operator operator, Map<String,Integer> value)Build a Geocode query. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Build the solr query string representing the Query object.booleanequals(Object obj)inthashCode()- 
Methods inherited from class org.ametys.cms.search.query.AbstractFieldQuery
getFieldPath 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
GeocodeQuery
public GeocodeQuery(String fieldPath)
Build a Geocode testing the existence of the field.- Parameters:
 fieldPath- the field path
 
- 
GeocodeQuery
public GeocodeQuery(String fieldPath, Query.Operator operator, Map<String,Integer> value)
Build a Geocode query.- Parameters:
 fieldPath- the field's pathoperator- the operator.value- the value.
 
 - 
 
- 
Method Detail
- 
build
public String build() throws QuerySyntaxException
Description copied from interface:QueryBuild the solr query string representing the Query object.- Returns:
 - the solr query string representing the Query object.
 - Throws:
 QuerySyntaxException- if the query can't be built because of a syntax error.
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classAbstractFieldQuery
 
- 
equals
public boolean equals(Object obj)
- Overrides:
 equalsin classAbstractFieldQuery
 
 - 
 
 -