Interface GeoPointBinder
-
- All Superinterfaces:
PropertyBinder,TypeBinder
public interface GeoPointBinder extends TypeBinder, PropertyBinder
A binder from a type or property to aGeoPointfield, representing a point on earth.These fields allow spatial predicates such as "within" (is the point within a circle, a bounding box, ...), sorts by distance to another point, ...
- See Also:
GeoPointBinding,create(),latitude(),longitude()
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static GeoPointBindercreate()GeoPointBinderfieldName(String fieldName)static LatitudeLongitudeMarkerBinderlatitude()static LatitudeLongitudeMarkerBinderlongitude()GeoPointBindermarkerSet(String markerSet)GeoPointBinderprojectable(Projectable projectable)GeoPointBindersortable(Sortable sortable)-
Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.PropertyBinder
bind
-
Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.TypeBinder
bind
-
-
-
-
Method Detail
-
fieldName
GeoPointBinder fieldName(String fieldName)
- Parameters:
fieldName- The name of theGeoPointfield. If used on a property, this defaults to the name of that property. Otherwise, the name must be defined explicitly.- Returns:
this, for method chaining.
-
projectable
GeoPointBinder projectable(Projectable projectable)
- Parameters:
projectable- Whether projections are enabled for theGeoPointfield.- Returns:
this, for method chaining.- See Also:
GenericField.projectable(),Projectable
-
sortable
GeoPointBinder sortable(Sortable sortable)
- Parameters:
sortable- Whether theGeoPointfield should be sortable by distance.- Returns:
this, for method chaining.- See Also:
GenericField.sortable(),Sortable
-
markerSet
GeoPointBinder markerSet(String markerSet)
- Parameters:
markerSet- The name of the "marker set". This is used to discriminate between multiple pairs of latitude/longitude markers:assign a marker set when building each marker, then select the marker set here.- Returns:
this, for method chaining.
-
create
static GeoPointBinder create()
- Returns:
- A
GeoPointBinder.
-
latitude
static LatitudeLongitudeMarkerBinder latitude()
- Returns:
- A
MarkerBinderfor the latitude, to be applied on a property. - See Also:
LatitudeLongitudeMarkerBinder
-
longitude
static LatitudeLongitudeMarkerBinder longitude()
- Returns:
- A
MarkerBinderfor the longitude, to be applied on a property. - See Also:
LatitudeLongitudeMarkerBinder
-
-